MDL-58439 admin: Ignore guest logins for all admin pages
This commit is contained in:
@@ -36,7 +36,7 @@ $confirm = optional_param('confirm', false, PARAM_BOOL);
|
||||
$choose = false;
|
||||
// Validate course id.
|
||||
if (empty($courseid)) {
|
||||
require_login();
|
||||
require_login(null, false);
|
||||
$context = context_system::instance();
|
||||
// check system level capability.
|
||||
if (!has_capability('tool/monitor:subscribe', $context)) {
|
||||
|
||||
Reference in New Issue
Block a user