staff bypass maintenance
This commit is contained in:
parent
f0e35e3bbe
commit
5a982e292d
|
|
@ -21,7 +21,7 @@ namespace Alphaland\Web {
|
|||
|
||||
public static function CanBypassMaintenance()
|
||||
{
|
||||
return $GLOBALS['user']->isAdmin() || WebContextManager::IsCurrentIpAddressWhitelisted();
|
||||
return $GLOBALS['user']->isStaff() || WebContextManager::IsCurrentIpAddressWhitelisted();
|
||||
}
|
||||
|
||||
public static function IsUnderMaintenance(bool $status = false)
|
||||
|
|
|
|||
Loading…
Reference in New Issue