If you haven't to much credentials (groups..), you can create one form for "admin" and the second for "normal user", they show the form by the credential of the user.
On 14 čnc, 23:49, galileo <galileo...@gmail.com> wrote: > You have misunderstand me :) > > i need display form fields only for those users that have needed > credentials not the whole actions :) for you knowladge > it is possible to define the actions credentials in the > generator.yml :P > > it is > > generator: > class: sfDoctrineGenerator > param: > model_class: incReport > theme: admin > non_verbose_templates: true > with_show: false > singular: ~ > plural: ~ > route_prefix: inc_report > with_doctrine_route: true > actions_base_class: sfActions > config: > actions: > edit: > credentials: [ editReport ] > show: > credentials: [ showReport ] > > form: > fields: > some_field: > credentials: [editReport] <- ---- THIS IS WHAT > I NEED i CAN'T FIGURE how to get this :) > > On 14 Lip, 23:17, pghoratiu <pghora...@gmail.com> wrote: > > > > > AFAIK you can not specify security settings in generator.yml only in > > config/security.yml > > There you have to specify the action name and the credentials required > > to access the action, > > see more info > > here:http://www.symfony-project.org/reference/1_4/en/08-Security > > > gabriel > > > On Jul 14, 11:58 pm, galileo <galileo...@gmail.com> wrote: > > > > I have question > > > > how in admin generator add credentials to forms in edit or new > > > > for example i have > > > > new: > > > display: > > > "Something": [ great ] > > > fields: > > > great: { credentials:[admin_credential]} > > > > It dosn't working this field is allways displayed any reason ? > > > > Symfony 1.4 with standard sfDoctrinePlugin doctrine 1.2 > > > > Hope for any answer how to do that -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en