This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » symfony 1.3 and 1.4 » Lock access to /sf_guard_user to non admin users
Lock access to /sf_guard_user to non admin users [message #103128] Tue, 27 July 2010 14:50 Go to next message
geraud  is currently offline geraud
Messages: 5
Registered: December 2009
Junior Member
Good afternoon,

I have installed the sfDoctrineGuardPlugin (v1.0.4) on a symfony project (v1.4.4).

I have published the modules sfGuardUser, sfGuardGroup and sfGuardPermission.

I would like 2 levels of users for my backend : admins which can manage users, and non admins which can only watch some other pages.

I have created the permission "user_manager" for the users which can manage users.

For users which have not the "user_manager" permission, i don't display the menu shortcuts pointing on sf_guard_[user|group|permission]. But they can access theses pages by typing the direct url site.ext/backend.php/sf_guard_user.

However I wrote in apps/backend/config/security.yml :
default:
  is_secure: true

sf_guard_user:
  credentials: user_manager


What should I do to forbid access to sfGuard to non admin users ?

Thank you by advance,

Regards,
Re: Lock access to /sf_guard_user to non admin users [message #103129 is a reply to message #103128 ] Tue, 27 July 2010 14:56 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
That looks right to me. Cleared your cache?


Remember Palestine
Re: Lock access to /sf_guard_user to non admin users [message #103130 is a reply to message #103129 ] Tue, 27 July 2010 14:57 Go to previous messageGo to next message
geraud  is currently offline geraud
Messages: 5
Registered: December 2009
Junior Member
Yes I did.

I have just found http://groups.google.com/group/symfony-users/browse_thread/t hread/a0bdc8215ac5da64 (after searching for 2 hours !). I'm trying it.
Re: Lock access to /sf_guard_user to non admin users [message #103131 is a reply to message #103130 ] Tue, 27 July 2010 15:04 Go to previous message
geraud  is currently offline geraud
Messages: 5
Registered: December 2009
Junior Member
geraud wrote on Tue, 27 July 2010 14:57

Yes I did.

I have just found http://groups.google.com/group/symfony-users/browse_thread/t hread/a0bdc8215ac5da64 (after searching for 2 hours !). I'm trying it.


And it works ! Thank you.
Previous Topic:[SOLVED]sfForkedDoctrineApplyPlugin new Installations problems
Next Topic:sfSessionStorage reading old cookie!!!!
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software