forked from kevinowino869/mitrobill
New Feature: Maintenance Mode
Maintenance Mode when enabled user/customer will not be able to login, a maintenance page will be displayed instead. but all admin users can login
This commit is contained in:
committed by
Ibnu Maksum
parent
0bad687f7a
commit
533d46bbf5
@ -5,6 +5,11 @@
|
||||
* by https://t.me/ibnux
|
||||
**/
|
||||
|
||||
$maintenance_mode = $config['maintenance_mode'];
|
||||
if ($maintenance_mode == true){
|
||||
displayMaintenanceMessage();
|
||||
}
|
||||
|
||||
if (User::getID()) {
|
||||
r2(U . 'home');
|
||||
}
|
||||
|
Reference in New Issue
Block a user