Browse files

Populated $overridableroles and $assignableroles to make roles tags a…

…ccessible. MDL-13803
  • Loading branch information...
1 parent 49e1894 commit e83460ac869594206f9da472939845cb6eace852 garethmorgan committed Mar 10, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 course/mod.php
View
2 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');
}

0 comments on commit e83460a

Please sign in to comment.