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:
martinlanghoff
2007-09-19 07:16:04 +00:00
parent 51be70d2e2
commit 33b6014f72
+1 -1
View File
@@ -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()) {