fix(sidebar): group employee menus under dedicated portal karyawan section

This commit is contained in:
Ray1111-aa
2026-10-20 14:51:59 +07:00
parent dc1b117922
commit 9f9bedebe9
3 changed files with 72 additions and 30 deletions
+4
View File
@@ -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')