- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2018 02:08 PM
I want to allow Read access to a related list on a CI if the user has read access to the CI. I defined an ACL on the related list table for this: answer = current.u_configuration_item.canRead(), but it is not working.
The "u_configuration_item" field is a reference to the CI. My test user can read the CI record, but the records on the related list are being restricted.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2018 09:19 AM
Can you do a canRead on a field?
I think you should glideRecord to that CI and then do a GlideRecordObject.canRead()
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2018 02:43 PM
Where did you add the script answer = current.u_configuration_item.canRead()?
The ACL should be created on CI Contracts table.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2018 05:54 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2018 09:19 AM
Can you do a canRead on a field?
I think you should glideRecord to that CI and then do a GlideRecordObject.canRead()
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2018 10:46 AM
Hi Sanjiv, you are correct, that is what I did (ss below) and it works perfectly. Thank you very much!
var gr = GlideRecord('cmdb_ci');
if(gr.get(current.u_configuration_item))
answer = gr.canRead();
else
answer = true;