fix permission bug

This commit is contained in:
2023-12-04 15:11:04 +05:00
parent 69be5f2461
commit cd071f7c75
4 changed files with 10 additions and 10 deletions

View File

@@ -92,9 +92,9 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
->canSee(fn () => auth()->user()->isMe()),
LogsTool::make()
->canSee(fn () => Gate::allowIf(fn ($user) => $user->isMe()))
->canDownload(fn () => Gate::allowIf(fn ($user) => $user->isMe()))
->canDelete(fn () => Gate::allowIf(fn ($user) => $user->isMe())),
->canSee(fn () => Gate::allows('isMe', auth()->user()))
->canDownload(fn () => Gate::allows('isMe', auth()->user()))
->canDelete(fn () => Gate::allows('isMe', auth()->user())),
];
}