Setting up Create, Read, Write and Delete ACL's

Andre241
Tera Contributor

I've created a table called "Dream" I created a user role called Dream user to with the following ACL's: Create, Read, Write and Delete. I need the user to be able to create, delete and edit their own record but be able to read others. I created the following acl's but they don't work. Any assistance would be great. 

Write ACL:

Andre241_0-1665447969910.png

 

Create ACL:

Andre241_1-1665448008517.png

 

Delete ACL:

Andre241_2-1665448115460.png

 

Read ACL: has no script

Andre241_3-1665448154496.png

 

8 REPLIES 8

Change the script to 

answer = false;

if (current.sys_created_by.equals(gs.getUserName()))
answer = true;

 

use this script as is.

in the role section of ACL use both the roles 

@Sateesh Kumar D 

It still does not allow me to create a new record. When click new the whole page is looks like a read only page. Ex.

Andre241_0-1665497981583.png

 

You need to add create ACL for * like you did for none. It would solve this problem.

Also please make sure to add * ACL for others as needed as well, which could solve other problems you will see on read and write as well

Make sure there are no other ACL than the once that you are creating, while creating the table it would create some ACL as well.