wip
This commit is contained in:
1 parent
8eb11b0183
commit
6f02c07df3
1 file changed
+2
-4
@@ -63,9 +63,7 @@ protected function routes(): void
|
||||
protected function gate(): void
|
||||
{
|
||||
Gate::define('viewNova', function ($user) {
|
||||
return in_array($user->email, [
|
||||
//
|
||||
]);
|
||||
return $user->isSystemUser() || $user->phoneIsVerified();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -90,7 +88,7 @@ public function tools(): array
|
||||
->onSwitchLocale(NovaRepo::localeSwitcherSave()),
|
||||
|
||||
BackupTool::make()
|
||||
->canSee(fn () => auth()->user()->isSuperAdmin()),
|
||||
->canSee(fn () => auth()->user()->isMe()),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user