mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Closes #256 Add capability to control viewing outage info
This commit is contained in:
@@ -97,7 +97,7 @@ class infopage {
|
||||
public function output() {
|
||||
global $PAGE, $CFG, $OUTPUT;
|
||||
|
||||
if (is_null($this->outage)) {
|
||||
if (is_null($this->outage) || !has_capability('auth/outage:viewinfo', context_system::instance())) {
|
||||
redirect(new moodle_url('/'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user