Skip to content

Commit

Permalink
Merge branch 'MDL-53010-master' of git://github.com/lameze/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Mar 8, 2016
2 parents e86fb50 + 73ea963 commit d5f05f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/roles/classes/define_role_table_advanced.php
Expand Up @@ -413,7 +413,7 @@ protected function load_parent_permissions() {
}

public function save_changes() {
global $DB;
global $DB, $CFG;

if (!$this->roleid) {
// Creating role.
Expand All @@ -427,6 +427,7 @@ public function save_changes() {
// the UI. It would be better to do this only when we know that fields affected are
// updated. But thats getting into the weeds of the coursecat cache and role edits
// should not be that frequent, so here is the ugly brutal approach.
require_once($CFG->libdir . '/coursecatlib.php');
coursecat::role_assignment_changed($this->role->id, context_system::instance());
}

Expand Down

0 comments on commit d5f05f7

Please sign in to comment.