Hide the log from users

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Hide the log from users

Postby kroken » Sat Oct 23, 2010 2:19 am

Is it possible to add a adminrole so the users cant see the log?
kroken
 
Posts: 81
Joined: Sat Oct 16, 2010 6:28 am

Postby kroken » Tue Nov 02, 2010 6:59 pm

anyone?
kroken
 
Posts: 81
Joined: Sat Oct 16, 2010 6:28 am

Postby pkx » Mon Jan 03, 2011 11:22 pm

bump, I'd like this too.
pkx
 
Posts: 7
Joined: Sat Jan 01, 2011 9:09 pm
Location: United States

Postby swocoom » Fri Jan 07, 2011 2:55 pm

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>
swocoom
 
Posts: 11
Joined: Wed May 19, 2010 2:52 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 7 guests