For Developers
Customize
If you prefer to set up your own customization, OfficeHours::isOffHour method will help you.
$office_hours = new \OunziwOfficeHours\OfficeHours;
$office_hours->isOffHour(); // true or false
Some possible solutions are;
- Locks specific page(s).
- Notify adminstrator(s) via email.
- Automatically logouts the accessed user.
When accidentally Locked Out
You might be locked out when you made a mistake in configuring.
In such cases, you can do either changing the Configuration file config/concrete.php or changing the Database table config.
A) Configuration file config/concrete.php: security > production > mode value: **development ** (production => development)
OR
B) Database table config: ounziw_office_hours.lock.pages value: **none ** (dashboard OR all => none)
(Either one will allow you access to the dashboard.)