fixed unassigning to use standard function in get_legacy_type()

This commit is contained in:
skodak 2007-03-07 09:38:21 +00:00
parent e921dffdc4
commit 66a27728a9

View File

@ -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);
}
}
}