MDL-58439 admin: Ignore guest logins for all admin pages
This commit is contained in:
@@ -44,9 +44,8 @@ function tool_task_mtrace_wrapper($message, $eol) {
|
||||
$taskname = required_param('task', PARAM_RAW_TRIMMED);
|
||||
|
||||
// Basic security checks.
|
||||
require_login();
|
||||
require_admin();
|
||||
$context = context_system::instance();
|
||||
require_capability('moodle/site:config', $context);
|
||||
|
||||
if (!get_config('tool_task', 'enablerunnow')) {
|
||||
print_error('nopermissions', 'error', '', get_string('runnow', 'tool_task'));
|
||||
|
||||
Reference in New Issue
Block a user