fix(sidebar): group employee menus under dedicated portal karyawan section
This commit is contained in:
@@ -139,6 +139,10 @@ class User extends Authenticatable
|
||||
|
||||
public function isEmployee(): bool
|
||||
{
|
||||
if ($this->isSuperAdmin()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->role === 'employee'
|
||||
|| $this->hasRole('employee')
|
||||
|| $this->can('employee.dashboard')
|
||||
|
||||
Reference in New Issue
Block a user