mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
fixed unassigning to use standard function in get_legacy_type()
This commit is contained in:
parent
e921dffdc4
commit
66a27728a9
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user