From 66a27728a9fdf44c4946e33ecf10e1efecc49730 Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 7 Mar 2007 09:38:21 +0000 Subject: [PATCH] fixed unassigning to use standard function in get_legacy_type() --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } } -- 2.39.5