fix: user nonaktif tidak bisa akses panel Filament

This commit is contained in:
2026-04-05 22:42:11 +07:00
parent 43a2fe4eea
commit a234decae1
+1 -1
View File
@@ -67,7 +67,7 @@ class User extends Authenticatable implements FilamentUser
public function canAccessPanel(Panel $panel): bool public function canAccessPanel(Panel $panel): bool
{ {
return true; return $this->status === 'aktif';
} }
public function canImpersonate(): bool public function canImpersonate(): bool