Deny access to settings page for normal user

Need help? Post your questions here.

Moderator: moderators

Deny access to settings page for normal user

Postby fanSte » Thu Apr 26, 2012 8:57 am

Hi!

How can I deny access to the settings page for a normal user? So that only the admin account can get into the settings?

fanSte.
fanSte
 
Posts: 9
Joined: Sat Nov 26, 2011 11:15 pm

Re: Deny access to settings page for normal user

Postby hakko » Thu Apr 26, 2012 9:13 am

I'd try altering the file jetty/[[[BUILD_NUMBER]]]/webapp/WEB-INF/applicationContext-security.xml

and change the line

Code: Select all
/personalSettings.view=ROLE_SETTINGS


to

Code: Select all
/personalSettings.view=ROLE_ADMIN


Can't say for sure that it will solve your problems, but it should be a good point to start!
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Deny access to settings page for normal user

Postby hakko » Thu Apr 26, 2012 9:16 am

Or do you wanna remove the Settings icon in the top menu completely for non-admins? Then it's jetty/[[[BUILD_NUMBER]]]/webapp/WEB-INF/jsp/top.jsp
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Deny access to settings page for normal user

Postby fanSte » Thu Apr 26, 2012 10:02 am

hakko wrote:Or do you wanna remove the Settings icon in the top menu completely for non-admins? Then it's jetty/[[[BUILD_NUMBER]]]/webapp/WEB-INF/jsp/top.jsp


thanks! that worked!

\\edit

I've changed

Code: Select all
<c:if test="${model.user.SettingsRole}">

into

Code: Select all
<c:if test="${model.user.adminRole}">
fanSte
 
Posts: 9
Joined: Sat Nov 26, 2011 11:15 pm

Re: Deny access to settings page for normal user

Postby GJ51 » Fri Apr 27, 2012 3:29 am

fanSte wrote:Hi!

How can I deny access to the settings page for a normal user? So that only the admin account can get into the settings?

fanSte.



The Settings for a non-admin user only affect the personal settings for that user and are very limited. They can change their theme if they like and change their password and whatever you allow them to do from what you set up when you added them.

It doesn't give them admin priveledges.

The changes they make only affect the way they see Subsonic displayed to them and is not a security risk.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York


Return to Help

Who is online

Users browsing this forum: No registered users and 22 guests