mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
Allow users to login when maintenance mode is active and is permitted.
This commit is contained in:
@@ -221,6 +221,11 @@ class redirection
|
|||||||
|
|
||||||
$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
|
// if(!ADMIN
|
||||||
// or if not mainadmin - ie e_UC_MAINADMIN
|
// or if not mainadmin - ie e_UC_MAINADMIN
|
||||||
// || (e_UC_MAINADMIN == e107::getPref('maintainance_flag') && !getperms('0')))
|
// || (e_UC_MAINADMIN == e107::getPref('maintainance_flag') && !getperms('0')))
|
||||||
|
Reference in New Issue
Block a user