1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

Allow users to login when maintenance mode is active and is permitted.

This commit is contained in:
Cameron
2021-06-15 15:37:45 -07:00
parent d2411404c4
commit a89b58a8a2

View File

@@ -219,8 +219,13 @@ class redirection
{
// if not admin
$allowed = e107::getPref('maintainance_flag');
$allowed = e107::getPref('maintainance_flag');
if(defset('e_PAGE') === 'login.php' && empty($_POST)) // allow admins/members to login.
{
return null;
}
// if(!ADMIN
// or if not mainadmin - ie e_UC_MAINADMIN
// || (e_UC_MAINADMIN == e107::getPref('maintainance_flag') && !getperms('0')))