Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums 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: 4299
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 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.