accesslib:load_all_capabilities() - fix guest user setup for multi-enrol
When setting things up for the guest user, the RA entry in accessdata was not multi-enrol-friendly. Must have glossed it over in the multi-enrol rework.
This commit is contained in:
+1
-1
@@ -1586,7 +1586,7 @@ function load_all_capabilities() {
|
||||
// Load the rdefs
|
||||
$USER->access = get_role_access($guest->id);
|
||||
// Put the ghost enrolment in place...
|
||||
$USER->access['ra'][$base] = $guest->id;
|
||||
$USER->access['ra'][$base] = array($guest->id);
|
||||
|
||||
} else if (isloggedin()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user