From: garethmorgan Date: Mon, 10 Mar 2008 19:05:12 +0000 (+0000) Subject: Populating $overridableroles and $assignableroles to make the roles tabs accessible... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=693838d37c644d02b60fb3c9d390234415daecb1;p=moodle.git Populating $overridableroles and $assignableroles to make the roles tabs accessible. MDL-13803. --- diff --git a/course/mod.php b/course/mod.php index 108a71e57c..c230b3ea9d 100644 --- a/course/mod.php +++ b/course/mod.php @@ -701,6 +701,8 @@ if (!empty($cm->id)) { $context = get_context_instance(CONTEXT_MODULE, $cm->id); $currenttab = 'update'; + $overridableroles = get_overridable_roles($context); + $assignableroles = get_assignable_roles($context); include_once($CFG->dirroot.'/'.$CFG->admin.'/roles/tabs.php'); }