diff --git a/app/Models/User.php b/app/Models/User.php index 9324689..bcba0dc 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -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(); } /**