From 6a5350f6bab18a87fc44ce66b811e14a801ef32f Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Thu, 4 Apr 2024 15:21:55 +1100 Subject: [PATCH] issue #76: allow users with tool/dynamic_cohorts:manage access manage page --- settings.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/settings.php b/settings.php index d636835..f1e5702 100644 --- a/settings.php +++ b/settings.php @@ -24,11 +24,10 @@ defined('MOODLE_INTERNAL') || die(); -if ($hassiteconfig) { - $ADMIN->add('accounts', new admin_category('tool_dynamic_cohorts', get_string('pluginname', 'tool_dynamic_cohorts'))); - $ADMIN->add('tool_dynamic_cohorts', new admin_externalpage( - 'tool_dynamic_cohorts_rules', - get_string('managerules', 'tool_dynamic_cohorts'), - new moodle_url('/admin/tool/dynamic_cohorts/index.php') - )); -} +$ADMIN->add('accounts', new admin_category('tool_dynamic_cohorts', get_string('pluginname', 'tool_dynamic_cohorts'))); +$ADMIN->add('tool_dynamic_cohorts', new admin_externalpage( + 'tool_dynamic_cohorts_rules', + get_string('managerules', 'tool_dynamic_cohorts'), + new moodle_url('/admin/tool/dynamic_cohorts/index.php'), + 'tool/dynamic_cohorts:manage' +));