Commit e4629b62 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Log admin out when disablelogin set on upgrade

parent 658fbdf0
......@@ -206,8 +206,13 @@ if (!defined('INSTALLER')) {
}
if (get_config('siteclosed')) {
if ($USER->admin && !defined('INSTALLER')) {
redirect('/admin/upgrade.php');
if ($USER->admin) {
if (get_config('disablelogin')) {
$USER->logout();
}
if (!defined('INSTALLER')) {
redirect('/admin/upgrade.php');
}
}
if (!$USER->admin) {
if ($USER->is_logged_in()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment