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 » plugins » General plug-ins » [Solved] sfDoctrineGuard and Credentials
icon14.gif  [Solved] sfDoctrineGuard and Credentials [message #103213] Wed, 28 July 2010 21:44
mrugendrabhure
Messages: 25
Registered: December 2009
Location: INDIA
Junior Member
Hi,

I have an application where I wish to restrict access to certain areas based on the permissions the user has.

I thought adding a permission and then credentials: <permission> in security.yml would do the trick, but apparently its not so and I can not login for any user including the superadmin.

What do I need to put in place of credentials (Permission, User, Group name) in order to restrict access?

Here is my setup:

Permissions:
Administration => Member SuperAdmin
Readers => Member Reader1

Now, for a module, moduleA, I want to restrict access to Administration permission users only, so I added

default:
  is_secure: true
  credentials: Administration

in security.yml.

Regards,
Mrugendra.

[Updated on: Wed, 28 July 2010 22:03]

Previous Topic:[NEW] sfiCalCreatorPlugin - iCal calendars with Symfony- I am looking for BETA testers.
Next Topic:sfImageTransformPlugin - doesn't resize well
Goto Forum:
  

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