mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 17:41:06 +03:30
testing
This commit is contained in:
@@ -12,6 +12,7 @@ class UserPolicy
|
||||
if($User->hasRole('Admin|Supervisor'))
|
||||
return true;
|
||||
}
|
||||
|
||||
public function delete(User $User, User $Operator)
|
||||
{
|
||||
if($User->hasRole('Admin') && $Operator->test_results->count() == 0 && $Operator->test_types->count() == 0
|
||||
@@ -31,11 +32,13 @@ class UserPolicy
|
||||
if($User->hasRole('Admin'))
|
||||
return true;
|
||||
}
|
||||
|
||||
public function changeRole(User $User)
|
||||
{
|
||||
if($User->hasRole('Admin'))
|
||||
return true;
|
||||
}
|
||||
|
||||
public function changeStatus(User $User)
|
||||
{
|
||||
if($User->hasRole('Admin|Supervisor'))
|
||||
|
||||
Reference in New Issue
Block a user