From 46943f7b785c18174b5058e724602707f6ab719c Mon Sep 17 00:00:00 2001 From: vyshane Date: Fri, 8 Sep 2006 02:33:02 +0000 Subject: [PATCH] Seems that the unassign_capability function signature was changed without updating the call to that function in capabilities_cleanup(). Fixed. --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index 21a7976e22..eac0d5adc2 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -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); } -- 2.39.5