Adjust authorization error message

This commit is contained in:
Bruno
2025-12-16 23:52:48 +00:00
parent 148d8c3dd2
commit 1c7662be7f

View File

@@ -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);
}