]> git.mjollnir.org Git - moodle.git/commitdiff
fixing typo
authortoyomoyo <toyomoyo>
Wed, 4 Oct 2006 02:43:29 +0000 (02:43 +0000)
committertoyomoyo <toyomoyo>
Wed, 4 Oct 2006 02:43:29 +0000 (02:43 +0000)
lib/accesslib.php

index d68e480e6756a6f8dc4879d37fab3f406f720154..459e686d160a98814ca01084a1a9c6b3916ed1f6 100755 (executable)
@@ -1189,7 +1189,7 @@ function delete_context($contextlevel, $instanceid) {
     if ($context = get_context_instance($contextlevel, $instanceid)) {
         return delete_records('context', 'id', $context->id) &&
                delete_records('role_assignments', 'contextid', $context->id) &&
-               delete_records('role_role_capabilities', 'contextid', $context->id);
+               delete_records('role_capabilities', 'contextid', $context->id);
     }
     return true;
 }
@@ -1600,7 +1600,7 @@ function role_assign($roleid, $userid, $groupid, $contextid, $timestart=0, $time
         if (!empty($USER->id) && $USER->id == $userid) {
             load_user_capability();
         }
-
+        
     /// Ask all the modules if anything needs to be done for this user
         if ($mods = get_list_of_plugins('mod')) {
             foreach ($mods as $mod) {