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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,6 +76,8 @@ trait UserAdjustments
|
||||
|
||||
/**
|
||||
* User branches
|
||||
*
|
||||
* @return HasMany<UserBranch, $this>
|
||||
*/
|
||||
public function userBranches(): HasMany
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user