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

make it so the approver of an request has read access to the RITM

Brian Lancaster
Tera Sage

How can I setup and ACL on the RITM table so that the approver has Read only access?

1 ACCEPTED SOLUTION

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;


}


View solution in original post

16 REPLIES 16

I'm not sure where the glide.approval is


But,   are there any read ACL's with * on request item table. Can you check that?


There are not read ACL with a * on the table.


Also check for a record ACL with read permissions on Requested Item, this would appear as table_name only (i.e., no *) in the ACL list.



        e.g.,         'sc_req_item' / '--none--'




Thanks,


-Brian


None of them have a * they are all just table name except for a few that are sc_req_item.something.   If you mean having a read ACL with no roles that would allow everybody to see anybodies RITM which is not allowed.


We are having the same issue. I'm about to enter a HI ticket as it seems like the OOB ACL isn't working.