wip
This commit is contained in:
1 parent
382317f1ae
commit
84bcc2e517
3 files changed
+11
-2
No files matched your search
@@ -56,6 +56,7 @@ public function boot(): void
|
||||
{
|
||||
// General permissions...
|
||||
Gate::define('isMe', fn ($user) => $user->isMe());
|
||||
Gate::define('isSuperAdmin', fn ($user) => $user->isSuperAdmin());
|
||||
Gate::define('isAdmin', fn ($user) => $user->isAdmin());
|
||||
Gate::define('systemUser', fn ($user) => $user->isSystemUser());
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ public function tools(): array
|
||||
->onSwitchLocale(NovaRepo::localeSwitcherSave()),
|
||||
|
||||
BackupTool::make()
|
||||
->canSee(NovaRepo::isAdmin()),
|
||||
->canSee(NovaRepo::isSuperAdmin()),
|
||||
|
||||
LogsTool::make()
|
||||
->canSee(NovaRepo::isMe())
|
||||
|
||||
Reference in new issue
Block a user