Removing "Users" from Home Screen

Need help? Post your questions here.

Moderator: moderators

Removing "Users" from Home Screen

Postby getzjd » Thu Nov 22, 2012 3:06 pm

Though I found the other posts on how to restrict access to the Status and About pages by editing the applicationcontext-security.xml file, I still cannot figure out how to remove or restrict access to the "users" link from the home screen ie. Recently Played | All | Users.

Ideas?
getzjd
 
Posts: 5
Joined: Sat Nov 17, 2012 3:52 pm
Location: Ohio

Re: Removing "Users" from Home Screen

Postby hakko » Thu Nov 22, 2012 4:12 pm

I think you can remove it from being visible here:

http://svn.code.sf.net/p/subsonic/code/ ... p/home.jsp

Remove the word "users" from where it says
Code: Select all
<c:forTokens items="random newest starred highest frequent recent alphabetical users" delims=" " var="cat" varStatus="loopStatus">


Further down, it says
Code: Select all
<c:when test="${model.listType eq 'users'}">


You might want to do something about that, too, if somebody still explicitly goes to home.view?listType=users.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Removing "Users" from Home Screen

Postby getzjd » Sat Dec 08, 2012 3:41 pm

That worked just fine. Thank you for pointing out where I could find it.
getzjd
 
Posts: 5
Joined: Sat Nov 17, 2012 3:52 pm
Location: Ohio


Return to Help

Who is online

Users browsing this forum: No registered users and 5 guests