Best practive to Remove GlideRecord from ACL and use conditional checks ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
I have an ACL on sc_req_item table as below to allow read access to the RITM for sc task approvers.
How to replace GLideRecord with ACL conditions so that it still grants read access to the RITM and variables on it for sc task approvers
var app_obj = new GlideRecord('sysapproval_approver');
app_obj.addQuery('approver', gs.getUserID());
app_obj.addQuery('sysapproval', current.sys_id);
app_obj.query();
if (app_obj.next()) {
return true;
}
return false;
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
this is duplicate question, please delete this
your earlier question already has a response
How to Avoid GlideRecord in ACL
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader