mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
nexus_config can access filament
This commit is contained in:
+1
-2
@@ -104,8 +104,7 @@ class User extends Authenticatable implements FilamentUser, HasName
|
|||||||
|
|
||||||
public function canAccessFilament(): bool
|
public function canAccessFilament(): bool
|
||||||
{
|
{
|
||||||
return true;
|
return $this->class >= self::CLASS_ADMINISTRATOR;
|
||||||
// return str_ends_with($this->email, '@yourdomain.com') && $this->hasVerifiedEmail();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getFilamentName(): string
|
public function getFilamentName(): string
|
||||||
|
|||||||
@@ -265,6 +265,7 @@ function nexus_config($key, $default = null)
|
|||||||
$files = [
|
$files = [
|
||||||
ROOT_PATH . 'config/nexus.php',
|
ROOT_PATH . 'config/nexus.php',
|
||||||
ROOT_PATH . 'config/emoji.php',
|
ROOT_PATH . 'config/emoji.php',
|
||||||
|
ROOT_PATH . 'config/filament.php',
|
||||||
];
|
];
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$basename = basename($file);
|
$basename = basename($file);
|
||||||
|
|||||||
Reference in New Issue
Block a user