Symfony: sfGuardAuth ile izin / grupları nasıl kullanılır

0 Cevap php

Ben sadece sfGuardAuth grupları ve izni hakkında çok belge yok olduğunu gördüm.

I have a permission named : moderator I have 3 groups : full_time / half_time / quarter_time

In my backend (symfony 1.4 / doctrine), I have 5 modules Only these two have to be visible for this : [st_job / st_offers ...].

Generic rule : I want that the moderator can edit an offer but NEVER delete it

Specific rule : I want that a full_time moderator can only see/edit full_time jobs or full_time offers Same with half_time moderator can only see/edit half time jobs / offers ....

I didn't find after research how to do that ? I only manage to create my groups / permission on the backend and that's all. Thanks !

0 Cevap