Continuing to investigate :
1/ note that I created my own module (as per tutorial) of sfGuardUser
under apps/backend/modules and added a config directory as well as a
generator.yml fle.
2/ In my new generator.yml file, I copied the content of the
generator.yml file that is under : plugins\sfDoctrineGuardPlugin
\modules\sfGuardUser\config and to be sure symfony use the correct
one, I change :
form:
class: sfGuardUserAdminForm
display:
"NONE": [username, password,
password_again]
"Permissions and groups": [is_active, is_super_admin,
groups_list, permissions_list]
to
form:
class: sfGuardUserAdminForm
display:
"NONE": [username, password,
password_again, last_login, created_at, updated_at, Profile]
"Permissions and groups": [is_active, is_super_admin,
groups_list, permissions_list]
and under the field options, I added : Profile: { label: User
Profile } to be sure that symfony uses the correct generator.yml file.
I finally got it to work by removing groups_list and permissions_list
from both file. So it seems that when files are generated, symfony
does use both files (some kind of merge ?) and then render the form.
Shouldn't symfony overwrite the generator.yml file under the plugin
directory by the one under the apps/backend/modules/sfGuardUser/config
directory ?
What's more, as I unset all fields of the "Permissions and groups"
section when the connected user is not an administrator, then noting
should be displayed. Currently, it seems the generator does not check
that. The title of the section "Permissions and groups" is generated
(it's a fieldset).
Should we opened one or 2 tickets ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---