Hide the Personalize list for specific table

beycos
Tera Contributor

Hello Community, 

I want to remove the personalized list (Cog icon) from some tables. To do this, I modified list_mechanic2  macro and added the following line: <j:if test="${ListProperties.getTable() != 'incident'}">

 

With this change, the Cog icon was successfully removed for the 'incident' table. However, now I (as an admin) am also unable to manage the list.

How can I keep the Cog icon hidden for users, but still allow access for admins?

 

Best Regards, 

Beyza 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@beycos 

update as this to show for admin

<j:if test="${ListProperties.getTable() != 'incident'&amp;&amp; !gs.hasRole('admin')}">

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@beycos 

update as this to show for admin

<j:if test="${ListProperties.getTable() != 'incident'&amp;&amp; !gs.hasRole('admin')}">

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

@beycos 

can you share where did you add that?

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

beycos
Tera Contributor

Thank you Ankur. it worked