fix: user nonaktif tidak bisa akses panel Filament
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user