mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 00:51:07 +03:30
testing
This commit is contained in:
@@ -22,7 +22,7 @@ class UserPolicy
|
|||||||
|
|
||||||
public function update(User $User, User $Operator)
|
public function update(User $User, User $Operator)
|
||||||
{
|
{
|
||||||
if($User->hasRole('Admin') && $User->id == $Operator->id)
|
if($User->hasRole('Admin') || $User->id == $Operator->id)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user