Hide 'Create Favorite' from the context menu

tonystark
Mega Expert

Hi All,

How can I hide the 'Create Favorite' from the context menu for the end users which is coming from the UI macro.

Thanks,

Tony.

553931ctomasi

4 REPLIES 4

Justin Abbott
Giga Guru

Comment out lines 123 through 132 in the 'context_form_header' UI Macro.


Hi Justin,



Thanks for responding, Create favorite should be visible for itil and above users. But the end users should not be able to see it. If I comment the mentioned numbered lines. It is not visible for all users. Am I correct?


In that case, replace line 109 with the code below. It checks to see if the user has the 'itil' role.



<j2:if test="$[pm.isActive('com.glide.ui.ui16') == true ${AND} gs.getUser().getPreference('use.concourse') == 'true' ${AND} gs.hasRole('itil')]">


venkatiyer1
Giga Guru

Hi Tony,



Create Favorite context menu comes as a part of UI 16 feature and it would hide if you were to make the system preference Use concourse false.


Better alternative is to comment out the script part that creates the "Create Favorite" context menu option in the macro. (using <!--           -->)