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