]> git.mjollnir.org Git - moodle.git/commitdiff
fixed unassigning to use standard function in get_legacy_type()
authorskodak <skodak>
Wed, 7 Mar 2007 09:38:21 +0000 (09:38 +0000)
committerskodak <skodak>
Wed, 7 Mar 2007 09:38:21 +0000 (09:38 +0000)
lib/accesslib.php

index dea67cde83eca8a92906d64b9d75b41204e5a26a..59e7072797e13649d5d16ae3f3d3c09504be9618 100755 (executable)
@@ -1577,7 +1577,7 @@ function get_legacy_type($roleid) {
             if (empty($result)) {
                 $result = $ltype;
             } else {
-                delete_records('role_capabilities', 'roleid', $roleid, 'contextid', $sitecontext->id, 'capability', $lcap);
+                unassign_capability($lcap, $roleid);
             } 
         }
     }