Skip to content

Commit 6a5350f

Browse files
committed
issue #76: allow users with tool/dynamic_cohorts:manage access manage page
1 parent af5a6ed commit 6a5350f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

settings.php

+7-8
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424

2525
defined('MOODLE_INTERNAL') || die();
2626

27-
if ($hassiteconfig) {
28-
$ADMIN->add('accounts', new admin_category('tool_dynamic_cohorts', get_string('pluginname', 'tool_dynamic_cohorts')));
29-
$ADMIN->add('tool_dynamic_cohorts', new admin_externalpage(
30-
'tool_dynamic_cohorts_rules',
31-
get_string('managerules', 'tool_dynamic_cohorts'),
32-
new moodle_url('/admin/tool/dynamic_cohorts/index.php')
33-
));
34-
}
27+
$ADMIN->add('accounts', new admin_category('tool_dynamic_cohorts', get_string('pluginname', 'tool_dynamic_cohorts')));
28+
$ADMIN->add('tool_dynamic_cohorts', new admin_externalpage(
29+
'tool_dynamic_cohorts_rules',
30+
get_string('managerules', 'tool_dynamic_cohorts'),
31+
new moodle_url('/admin/tool/dynamic_cohorts/index.php'),
32+
'tool/dynamic_cohorts:manage'
33+
));

0 commit comments

Comments
 (0)