Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

ACL not working for Project Worksapce

Rajesha Hati
Tera Expert

i have a requirement that in customer_project table if the project manager and logged in user is not same then he will not be able to assignee that project to any user. and for that i have created 2 acl one is list_edit and another is write ACL, it's working fine for form view and for list view but not working in project workspace. 

 

i am using this script:

var answer = true;
if (gs.hasRole('it_project_manager') && gs.getUserID() != current.project_manager) {
    answer = false;
} else {
    answer = true;
}

answer;
0 REPLIES 0