Hi Nabil,
Let's say you want to lock down the module 'mymodule' so that only
members of the 'admin' group can access it. Use the sample fixtures from
the sfGuardPlugin:
sfGuardPermission:
admin:
name: admin
description: Administrator permission
sfGuardGroup:
admin:
name: admin
description: Administrator group
sfGuardGroupPermission:
admin:
group_id: admin
permission_id: admin
Once you have these in your database, you can use the following in your
myapp/modules/mymodule/config/security.yml
all:
is_secure: on
credentials: admin
Now, when you login the next time as a member of the group 'admin', you
will be assigned the permission (credential) 'admin' and you will be
able to access the module 'mymodule'.
Hope this helps.
Tom
Nabil EL GHALI wrote:
> I'm using the sfGuard plugin and would like to know how to configure
> permission for members of a group , like secure an module ..etc
>
> >
--
Tom Haskins-Vaughan
Temple Street Media: Design and Development for the Web
[email protected] | www.templestreetmedia.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---