mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
not found on wrong blob signature
This commit is contained in:
1 parent
8227dd4f6a
commit
4ad58fc285
1 file changed
+3
-1
@@ -11,7 +11,9 @@ module Api
|
||||
def show
|
||||
Rollbar.info('Blob legacy') if defined?(Rollbar)
|
||||
|
||||
blob = ActiveStorage::Blob.find_signed!(params[:signed_blob_id] || params[:signed_id])
|
||||
blob = ActiveStorage::Blob.find_signed(params[:signed_blob_id] || params[:signed_id])
|
||||
|
||||
return head :not_found unless blob
|
||||
|
||||
is_permitted = blob.attachments.any? do |a|
|
||||
(current_user && a.record.account.id == current_user.account_id) ||
|
||||
|
||||
Reference in new issue
Block a user