mirror of
https://github.com/brufdev/many-notes.git
synced 2025-12-20 09:59:55 -06:00
Adjust authorization error message
This commit is contained in:
@@ -21,7 +21,7 @@ final readonly class VaultExportController
|
||||
): StreamedResponse|JsonResponse {
|
||||
if ($user->cannot('view', $vault)) {
|
||||
return response()->json([
|
||||
'message' => 'You are not authorized to access this resource',
|
||||
'message' => 'Not allowed',
|
||||
], 403);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user