BugFix - Fixed a problem that would not allow admins to use the system while in maintenance.

This commit is contained in:
Daniel Thee Roperto
2016-09-12 09:55:57 +10:00
parent 4462a9c07b
commit 7edefc8462

View File

@@ -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')) . '";';
}
?>