This commit is contained in:
nurmuhammet committed 2025-11-04 21:07:23 +05:00
1 parent 84c4a584a0
commit 310590010c
13 files changed
+119 -24

No files matched your search

@@ -41,7 +41,7 @@ public function isAdmin(): bool
*/
public function isOperator(): bool
{
return $this->hasRole('operator');
return $this->hasRole(['operator', 'operator_card', 'operator_loan']);
}
/**
@@ -57,6 +57,6 @@ public function isCurrencyMaintainer(): bool
*/
public function isSystemUser(): bool
{
return $this->hasAnyRole();
return $this->isAdmin() || $this->isOperator();
}
}
@@ -76,6 +76,8 @@ public function branches(): BelongsToMany
/**
* User branches
*
* @return HasMany<UserBranch, $this>
*/
public function userBranches(): HasMany
{