cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling Save Public Search Option

nh
Champ in-the-making
Champ in-the-making
Hi,

I need to disable the Save as a public search available to all users. [ the check box in the save new search option] to the normal users and enable it only to the admin.

Is there a congfiguration which would make this happen? Or do i need to make some code changes?

In fact i altered the save-search.jsp and commented the check box code, due to which it is disabled for all.

Please assist me.

Thanks,
Hari
3 REPLIES 3

gavinc
Champ in-the-making
Champ in-the-making
There isn't a configuration option for this, you'll have to make a code change.

We do a simiar thing for the admin console link in the main view (/parts/titlebar.jsp), you can filter things using a boolean evaluator tag as shown below:

<a:booleanEvaluator value="#{NavigationBean.currentUser.admin == true}" id="evalA">
   <a:actionLink value="#{msg.admin_console}" image="/images/icons/admin_console.gif" showLink="false" action="dialog:adminConsole" id="link11_1" />
</a:booleanEvaluator>

You could use this same technique around the checkbox component you currently have commented out.

ribz33
Champ on-the-rise
Champ on-the-rise
This answer is again available ?
There is no way to configure it without modify interface ?

gavinc
Champ in-the-making
Champ in-the-making
Yes, this is still the case, you will need to modify the JSP.