staff bypass maintenance

This commit is contained in:
Astrologies 2021-12-06 02:08:09 -05:00
parent f0e35e3bbe
commit 5a982e292d
1 changed files with 1 additions and 1 deletions

View File

@ -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)