From: martinlanghoff Date: Wed, 19 Sep 2007 07:16:04 +0000 (+0000) Subject: accesslib:load_all_capabilities() - fix guest user setup for multi-enrol X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=33b6014f72cb4884c7729e5dfba2164664dbf723;p=moodle.git 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. --- diff --git a/lib/accesslib.php b/lib/accesslib.php index 0a9adeefa7..8e08e10c80 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -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()) {