Skip to main content
14-Alexandrite
July 26, 2023
Solved

Policy Rules vs. Primary Content / Secondary Content Download

  • July 26, 2023
  • 2 replies
  • 2294 views

Hello,

 

Has anyone tried to figure out the way to be able to only download secondary content from WTDocument and prohibit download of primary content at the same time?

 

Assuming we have this table "Primary Content" and "Attachments" - I would like to be setup ACLs in a way to be able to download Attachments, but not Primary Content.

 

Obviously I setup already the ACLs in a way that "download" is prohibited for this type of WTDocument. But the goal is to be able to do it without changing Java code of related data utility.

m_walendziuk_0-1690380516568.png

 

Any ideas?

 

Best regards,

Mateusz Walendziuk

 

 

Best answer by HelesicPetr

Hi @m_walendziuk 

 

In my opinion this is not possible OOTB, because the Download ACL is defined for both type of content. Primary and Secondary.

I can not see a way how to achieve what you need without customization . 

 

PetrH

2 replies

HelesicPetr
22-Sapphire II
22-Sapphire II
July 31, 2023

Hi @m_walendziuk 

 

In my opinion this is not possible OOTB, because the Download ACL is defined for both type of content. Primary and Secondary.

I can not see a way how to achieve what you need without customization . 

 

PetrH

15-Moonstone
September 19, 2023

Hi @m_walendziuk ,

 

I have the same requirements, may I ask how you finally realized it, thanks!

HelesicPetr
22-Sapphire II
22-Sapphire II
September 19, 2023

Hi @CZ_9645217 

You need to create own custom filter (validator) that allows you to use download button on your own rules.

For example, only person in specific group can do the download or can not download atc. 

Then you need to add that filter to download action

 

Unfortunately without coding and wch customization knowledge it is tough to explain step by step. 

 

how to create validator Adding Validation Logic for Actions

action customization Defining Menus

 

PetrH

15-Moonstone
September 19, 2023

Hi @HelesicPetr 

 

I have written a custom filter to disable download primary file for specific conditions, but users can still click on the Primary Content link in the attribute to download, as shown in Figure 2, how to disable the link in the attribute to download together? Thanks for your help.

 

CZ_9645217_0-1695124953269.png

Figure 2:

CZ_9645217_1-1695124976597.png