ACL - Apply ACL to a specific attachment from a variable on RITM

Onoderav
Tera Contributor

Hi,

I'd appreciate some help with following requirement:

In a specific catalog item I've got 5 variables "attachment" type. A specific group of users must be allowed to download all those 5 attachments, and there's already an ACL doing that, and only this group can download attachment from this specific catalog item. BUT there's a specific variable attachment that anyone, from any group is allowed to download. How can I achieve this? Any idea?

2 REPLIES 2

Tony Chatfield1
Kilo Patron

Hi, if you already have ACL's configured that are allowing\preventing download of all 5 attachments based on specific values IE group membership, then to allow everyone specific access to 1 of the attachments you should just need to add a new read acl specifically for the record involved.
if(somethingThatIdentifiesYourRecord) {

answer = true;

}

Hi,

I've created a condition in which I specified the attachment variable on catalog item "if(item.variables.name_of_variable)" but it doesn't work. How do I create a condition that specify the attachment related to that variable?