generated from liutk/owl-admin-base
Update
parent
fec5502dfa
commit
336ff28c16
|
|
@ -122,7 +122,7 @@ class Employee extends Model implements AuthenticatableContract
|
|||
*/
|
||||
public function isAdministrator(): bool
|
||||
{
|
||||
return $this->adminUser->isAdministrator();
|
||||
return $this->adminUser->inRoles(['admin', 'administrator']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue