This commit is contained in:
2025-09-08 14:18:22 +05:00
parent 44217fb8b9
commit b509a23f7a

View File

@@ -175,12 +175,20 @@ class User extends Authenticatable
return $this->hasRole('operator');
}
/**
* Check if user is a currency maintainer.
*/
public function isCurrencyMaintainer(): bool
{
return $this->hasRole('currency_maintainer');
}
/**
* Is System User
*/
public function isSystemUser(): bool
{
return $this->isAdmin() || $this->isOperator();
return $this->isAdmin() || $this->isOperator() || $this->isCurrencyMaintainer();
}
/**