
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2017 05:58 AM
How can I setup and ACL on the RITM table so that the approver has Read only access?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2017 05:33 AM
I finally got a response from Hi. I have made the Original ACL inactive and crated a new one with the following code. So far it seems to be working in my dev instance.
isHisApproval();
function isHisApproval(){
if(current.isNewRecord() || current.opened_by == gs.getUserID() || current.request.requested_for == gs.getUserID() ||
gs.hasRole('itil')){
return true;
}
var lv_app_obj = new GlideRecord('sysapproval_approver');
lv_app_obj.addQuery('approver', gs.getUserID());
lv_app_obj.addQuery('sysapproval', current.sys_id);
lv_app_obj.query();
if(lv_app_obj.next()){
return true;
}
return false;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2017 10:38 AM
No, I meant having an ACL with the only the table specified, and "--None--" in the field selector... i.e., grant read access to the record, not the fields. Because if you don't have access to the record, it doesn't matter what field access you have setup.
-Brian

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2017 10:44 AM
Yes there are several of them. One of which includes the following code which should be giving approves read access.
- var transaction = GlideTransaction.get();
- (transaction.getRequestParameter("sysparm_record_target") == "sysapproval_approver") || (typeof g_approval_form_request != "undefined" && g_approval_form_request == true);