mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
fix find blob by checksum
This commit is contained in:
1 parent
8a60f17d13
commit
b6fb7c6977
1 file changed
+7
-1
@@ -305,7 +305,13 @@ module Submitters
|
|||||||
|
|
||||||
return unless blob
|
return unless blob
|
||||||
|
|
||||||
return blob if blob.attachments.take&.record&.account_id == account.id
|
attachment = blob.attachments.take
|
||||||
|
|
||||||
|
return if attachment.nil? ||
|
||||||
|
attachment.record_type != 'Submitter' ||
|
||||||
|
attachment.name != 'attachments'
|
||||||
|
|
||||||
|
return blob if attachment.record&.account_id == account.id
|
||||||
|
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user