Добавлена роль экономист и настройка доступа к статистике
This commit is contained in:
@@ -174,6 +174,11 @@ class User extends Authenticatable
|
||||
return $this->currentRole()->slug === 'nurse';
|
||||
}
|
||||
|
||||
public function isEconomist(): bool
|
||||
{
|
||||
return $this->currentRole()->slug === 'econom';
|
||||
}
|
||||
|
||||
public function isSeniorStaff(): bool
|
||||
{
|
||||
return $this->isAdmin() || $this->isChiefDoctor() || $this->isDeputyChief() || $this->isHeadOfDepartment();
|
||||
|
||||
Reference in New Issue
Block a user