The CreatorCon Call for Content is officially open! Get started here.

Custom ACL not working in the Workspace

Ashutosh4
Tera Contributor

I have customised one ootb acl which is related to Action 

Ashutosh4_0-1695026771874.png

Ashutosh4_1-1695026805581.png

These are the conditions I am using the RIDAC tables
But this condition is working fine in the native view for all of RIDAC but in the project workspace , it is not working for Action and Change request.
Below is the code I am using  for the action :

if (current.parent.sys_class_name == 'pm_project' && (current.parent.project_manager == gs.getUserID() || current.parent.u_additional_project_manager.toString().indexOf(gs.getUserID()) != -1 || gs.hasRole('ITBM_elevated_access') || current.parent.opened_by == gs.getUserID())) {
answer = true;
} else if (current.parent.sys_class_name == 'dmn_demand' && (current.parent.demand_manager == gs.getUserID() || current.parent.u_additional_demand_managers.toString().indexOf(gs.getUserID()) != -1 || gs.hasRole('ITBM_elevated_access') || current.parent.opened_by == gs.getUserID())) {
answer = true;
} else if (current.assigned_to == gs.getUserID()) {
answer = true;
}

 

I tried to check few things as in I tried to remove few condition to test and I found that if i remove the condition "current.parent.sys_class_name == 'pm_project' " then it  is working i.e rest all conditions are working fine 

Can you please help me with it  ?

1 REPLY 1

Ashutosh4
Tera Contributor

Any Small help is really appreciated ,

Thank you