wip
This commit is contained in:
@@ -41,7 +41,7 @@ trait RoleCheckers
|
||||
*/
|
||||
public function isOperator(): bool
|
||||
{
|
||||
return $this->hasRole('operator');
|
||||
return $this->hasRole(['operator', 'operator_card', 'operator_loan']);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -57,6 +57,6 @@ trait RoleCheckers
|
||||
*/
|
||||
public function isSystemUser(): bool
|
||||
{
|
||||
return $this->hasAnyRole();
|
||||
return $this->isAdmin() || $this->isOperator();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user