permessions added to user
This commit is contained in:
@@ -48,15 +48,6 @@ class RolePolicy
|
||||
*/
|
||||
public function update(User $user, Role $role): bool
|
||||
{
|
||||
if (in_array($role->name, [
|
||||
'king',
|
||||
'superadmin',
|
||||
'admin',
|
||||
'operator',
|
||||
])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($user->isAdmin()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user