mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
BugFix - Fixed a problem that would not allow admins to use the system while in maintenance.
This commit is contained in:
@@ -79,7 +79,7 @@ echo html_writer::tag('style',
|
||||
clearInterval(this.timer);
|
||||
missing = 0;
|
||||
<?php
|
||||
if (is_siteadmin()) {
|
||||
if (!is_siteadmin()) {
|
||||
echo 'location.href = "' . (new \moodle_url('/auth/outage/info.php')) . '";';
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user