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:
@@ -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')))
|
||||
|
Reference in New Issue
Block a user