Custom ACL not working in the Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2023 01:50 AM
I have customised one ootb acl which is related to Action
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2023 07:06 AM
Any Small help is really appreciated ,
Thank you