Skip to content

Commit

Permalink
accesslib:reload_all_capabilities() - force a reload of mycourses
Browse files Browse the repository at this point in the history
unset $USER->mycourses to force a reload of mycourses too.
  • Loading branch information
martinlanghoff committed Sep 19, 2007
1 parent d32dd61 commit 54f9d9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/accesslib.php
Expand Up @@ -1596,6 +1596,7 @@ function reload_all_capabilities() {
}

unset($USER->access);
unset($USER->mycourses);

load_all_capabilities();

Expand Down

0 comments on commit 54f9d9a

Please sign in to comment.