From: skodak Date: Wed, 7 Mar 2007 09:38:21 +0000 (+0000) Subject: fixed unassigning to use standard function in get_legacy_type() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=66a27728a9fdf44c4946e33ecf10e1efecc49730;p=moodle.git fixed unassigning to use standard function in get_legacy_type() --- diff --git a/lib/accesslib.php b/lib/accesslib.php index dea67cde83..59e7072797 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -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); } } }