Page 1 of 1
How to limit working hours for any access level?
Posted: Tue Sep 21, 2021 3:49 pm
by miasoft
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?
Re: How to limit working hours for any access level?
Posted: Tue Sep 21, 2021 4:05 pm
by kev1n
Hi,
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');
}
Re: How to limit working hours for any access level?
Posted: Tue Sep 21, 2021 4:51 pm
by miasoft
Thanks! That's great!
