Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
How to limit working hours for any access level?
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
How to limit working hours for any access level?
Users are ready to work around the clock. I would like to have my own time to modify the server and database. I would like to limit their work, for example, from 08:00-20:00 . How is it easier to do this?
Wbr, miasoft.
-
- nuBuilder Team
- Posts: 4565
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 529 times
- Contact:
Re: How to limit working hours for any access level?
Hi,
Add a new Procedure with a global nuBeforeEdit event:
Add a new Procedure with a global nuBeforeEdit event:
Code: Select all
if (nuGlobalAccess()) return;
$d = date('H');
if ($d < 8 || $d > 20) {
nuDie('The system is down for maintenance from 20:00 - 08:00');
}
You do not have the required permissions to view the files attached to this post.