- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 01:03 AM
I have a Client-callable script include with ACLs and an Onload client script of catalog item calls GlideAjax.
Users can see my catalog item in their service portal
- If users pass ACL, they can excute it
- But if an user can't pass ACL, a Javascript error message will show up
Do we have any method to check if user can excute that GlideAjax before execute it? (simular to current.canRead() current.canWrite())
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 02:05 AM
nope there is nothing for this.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 02:05 AM
@Sominnown ,
I see what you are saying. Even though it saves us from calling script include in unfavourable cases thus saving the whole execution. In the favourable one, its going to be a duplicate execution.