Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

content acl modify

huangh
Tera Contributor

I tried to modify the ACL of the content table so that users can only see the content they created, but it did not take effect. I want to know how to customize the ACL of the content table and make it take effect

1 ACCEPTED SOLUTION

Dnyaneshwaree
Mega Sage

Hello @huangh ,

Create ACL for Update Operation and add script with condition for "content editor" role as posted below. test it after saving the same ACL.

if (gs.hasRole('content_editor')) {
answer = true;
} else {
answer = false;
}

Please accept my solution if it works for you and thumps up to mark it as helpful.

Thank you!!

View solution in original post

2 REPLIES 2

Dnyaneshwaree
Mega Sage

Hello @huangh ,

Create ACL for Update Operation and add script with condition for "content editor" role as posted below. test it after saving the same ACL.

if (gs.hasRole('content_editor')) {
answer = true;
} else {
answer = false;
}

Please accept my solution if it works for you and thumps up to mark it as helpful.

Thank you!!

You gave me a huge reminder, thank you very much