From 16a77d353605f4a521ba795d8c67ceefd9a7d027 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Tue, 16 Apr 2024 14:07:38 +0300 Subject: [PATCH] add log --- app/controllers/api/active_storage_blobs_proxy_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/api/active_storage_blobs_proxy_controller.rb b/app/controllers/api/active_storage_blobs_proxy_controller.rb index f96d3788..04893abc 100644 --- a/app/controllers/api/active_storage_blobs_proxy_controller.rb +++ b/app/controllers/api/active_storage_blobs_proxy_controller.rb @@ -46,6 +46,8 @@ module Api return if is_authorized + Rollbar.error('Blob aunauthorized') if defined?(Rollbar) + raise CanCan::AccessDenied end end