Allow non-superusers with manage_users to set permissions back to inherit
Fixes #3274
This commit is contained in:
parent
b59c86cc48
commit
7c20e32c47
|
|
@ -103,10 +103,6 @@ class PermissionEditor extends FormWidgetBase
|
|||
}, array_flatten($this->getFilteredPermissions()));
|
||||
|
||||
foreach ($newPermissions as $permission => $code) {
|
||||
if ($code === 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (in_array($permission, $allowedPermissions)) {
|
||||
$existingPermissions[$permission] = $code;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue