]> git.mjollnir.org Git - moodle.git/commitdiff
Seems that the unassign_capability function signature was changed without updating...
authorvyshane <vyshane>
Fri, 8 Sep 2006 02:33:02 +0000 (02:33 +0000)
committervyshane <vyshane>
Fri, 8 Sep 2006 02:33:02 +0000 (02:33 +0000)
lib/accesslib.php

index 21a7976e226c79821651862208cacab532d5321a..eac0d5adc20641478e93f59146dc114b740c24dd 100755 (executable)
@@ -1428,7 +1428,7 @@ function capabilities_cleanup($component, $newcapdef=NULL) {
                 // Delete from roles.
                 if($roles = get_roles_with_capability($cachedcap->name)) {
                     foreach($roles as $role) {
-                        if (!unassign_capability($role->id, $cachedcap->name)) {
+                        if (!unassign_capability($cachedcap->name, $role->id)) {
                             error('Could not unassign deprecated capability '.
                                     $cachedcap->name.' from role '.$role->name);
                         }