mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
superadmin file download
This commit is contained in:
1 parent
313d7f8408
commit
4edee2971a
1 file changed
+1
@@ -42,6 +42,7 @@ module Api
|
||||
|
||||
is_authorized = attachment.name.in?(%w[logo preview_images]) ||
|
||||
(current_user && attachment.record.account.id == current_user.account_id) ||
|
||||
(current_user && !Docuseal.multitenant? && current_user.role == 'superadmin') ||
|
||||
!attachment.record.account.account_configs
|
||||
.find_or_initialize_by(key: AccountConfig::DOWNLOAD_LINKS_AUTH_KEY).value
|
||||
|
||||
|
||||
Reference in new issue
Block a user