- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 12:22 AM
Hi all,
Over the weekend some of our catalog items have disappeared from our portal and can't quite figure out why.
Our team have checked user restrictions, ACLs, catalog item configurations etc but don't see anything out of the ordinary. The issue is only observed with non admin users as admins can see these items
Would anyone know what else could be looked at to see why only admins can see these items.
Solved! Go to Solution.
- Labels:
-
Request Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2019 12:56 AM
Hi Shubham,
The code was rewritten as follows and is working now.
var userID = gs.getUserID();
var internal = new GlideRecord("sys_user");
internal.get("sys_id", userID);
if(internal.getValue("active") == true) {
answer = true;
Thanks for your help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 07:54 PM
Some possibilities:
1. The category field on these catalog items has been cleared out
2. A new user criteria is applied to these catalog items
3. The items were moved to another catalog
4. The widget that displays these catalog items has been modified.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 12:04 AM
Hi Moy, Thanks for your reply. Turns out a Madrid patch was applied over the weekend. The patch doesn't support the below particular scripting method of retrieving active users which we had set up on the catalog items.
gs.getUser().getRecord().getValue('active')==true;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 01:47 AM
Hi ,
Please remove getRecord() from the below query :
gs.getUser().getRecord().getValue('active')==true; . Now check it is working fine or not.
Regards,
Shubham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2019 12:56 AM
Hi Shubham,
The code was rewritten as follows and is working now.
var userID = gs.getUserID();
var internal = new GlideRecord("sys_user");
internal.get("sys_id", userID);
if(internal.getValue("active") == true) {
answer = true;
Thanks for your help