This commit is contained in:
2025-11-04 21:07:23 +05:00
parent 84c4a584a0
commit 310590010c
13 changed files with 119 additions and 24 deletions

View File

@@ -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();
}
}

View File

@@ -76,6 +76,8 @@ trait UserAdjustments
/**
* User branches
*
* @return HasMany<UserBranch, $this>
*/
public function userBranches(): HasMany
{