wip
This commit is contained in:
@@ -63,9 +63,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
|
|||||||
protected function gate(): void
|
protected function gate(): void
|
||||||
{
|
{
|
||||||
Gate::define('viewNova', function ($user) {
|
Gate::define('viewNova', function ($user) {
|
||||||
return in_array($user->email, [
|
return $user->isSystemUser() || $user->phoneIsVerified();
|
||||||
//
|
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,7 +88,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
|
|||||||
->onSwitchLocale(NovaRepo::localeSwitcherSave()),
|
->onSwitchLocale(NovaRepo::localeSwitcherSave()),
|
||||||
|
|
||||||
BackupTool::make()
|
BackupTool::make()
|
||||||
->canSee(fn () => auth()->user()->isSuperAdmin()),
|
->canSee(fn () => auth()->user()->isMe()),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user