main
Jing Li 2024-04-29 19:35:11 +08:00
parent fec5502dfa
commit 336ff28c16
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ class Employee extends Model implements AuthenticatableContract
*/ */
public function isAdministrator(): bool public function isAdministrator(): bool
{ {
return $this->adminUser->isAdministrator(); return $this->adminUser->inRoles(['admin', 'administrator']);
} }
/** /**