FOSUserBundle icon indicating copy to clipboard operation
FOSUserBundle copied to clipboard

Implementing Groups

Open Kifah opened this issue 14 years ago • 1 comments

Hi, i implemented the groups as of the documentation. And the are presented in the DB whenever i create a new group. But what is still unclear to me from the documentation:

  1. How do i make a user be a member of a default group, after registration? Do i need to override the Controllers? or can i use a doctrine listener?what is best, easiest path?
  2. How do i edit the Roles of the different groups?

Kifah avatar Jun 21 '12 10:06 Kifah

If you want to put the user in a group during the registration, you need to extend the form handler to add some logic on success. To edit the roles of a group, you need to build an interface doing it. there is no built-in way to do it.

stof avatar Jun 21 '12 10:06 stof