This commit is contained in:
nurmuhammet committed 2023-12-03 18:43:07 +05:00
1 parent 8eb11b0183
commit 6f02c07df3
1 file changed
+2 -4
+2 -4
View File
@@ -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()),
];
}