mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
nexus_config can access filament
This commit is contained in:
@@ -104,8 +104,7 @@ class User extends Authenticatable implements FilamentUser, HasName
|
||||
|
||||
public function canAccessFilament(): bool
|
||||
{
|
||||
return true;
|
||||
// return str_ends_with($this->email, '@yourdomain.com') && $this->hasVerifiedEmail();
|
||||
return $this->class >= self::CLASS_ADMINISTRATOR;
|
||||
}
|
||||
|
||||
public function getFilamentName(): string
|
||||
|
||||
Reference in New Issue
Block a user