Issue with work_notes visibility.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 03:57 AM
Current Scenario: I have an ACL for Work notes read to check if the caller is same as logged in user. Then work notes should not be visible. Now this prevents the work notes to be visible in the Employee Center.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 04:00 AM - edited 01-09-2024 04:00 AM
In the ACL script you should check for second condition first and use if else if
Like below:
if(<caller and the assigned_to person are the same >)
answer= true;
else if(<caller is same as logged in user> )
answer = false;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 04:48 AM
Did you try this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 04:54 AM
Yes, but it did not work. I am checking if my script is correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 04:05 AM
Hi,
if (!gs.hasRole("admin") && gs.hasRole("employee_center_role")) {
answer = true;
}
else {
answer = false;
}
if(gs.getUser().isMemberOf("your group NAME")){ answer = true; gs.log(gs.getUser().isMemberOf("your group NAME"),"acl working now"); }else { answer = false; }
Mark this helpful if this works.