Page 1 of 1

Hide the log from users

PostPosted: Sat Oct 23, 2010 2:19 am
by kroken
Is it possible to add a adminrole so the users cant see the log?

PostPosted: Tue Nov 02, 2010 6:59 pm
by kroken
anyone?

PostPosted: Mon Jan 03, 2011 11:22 pm
by pkx
bump, I'd like this too.

PostPosted: Fri Jan 07, 2011 2:55 pm
by swocoom
Modify the top.jsp file located at c:\subsonic\jetty\[version]\webapp\WEB-INF\jsp\. Add the following c:if statement around whatever button you want to hide from regular users. The log happens to be in help. This will only hide the button, they can still use the page if they know the link. If you want to change things on the help page you will need to recompile the source to make it be able to use the model.user.adminrole switch.

<c:if test="${model.user.adminRole}">
<td style="min-width:4em;padding-right:1.5em">
<a href="help.view?" target="main"><img src="<spring:theme code="helpImage"/>" title="${help}" alt="${help}"></a><br>
<a href="help.view?" target="main">${help}</a>
</td>
</c:if>