Questions tagged [sonata-user-bundle]

Integrates the `FOS/UserBundle` in the Sonata Admin Project to add some features related to the users.

Integrates the FOS/UserBundle in the Sonata Admin Project and adds some features:

  • AdminBundle: add user and group management
  • EasyExtends: allows to generate Application level model
  • Features: User profile dashboard, user profile menu, Google Authenticator support (optional), …

The roles to be assigned to users are splitted in 2 parts:

  • editable: the roles the current user is allowed to assign to other users

(permission or role MASTER)

  • readonly: the roles assigned to the current user, however the current

user is only allowed to see them

When using ACL, the UserBundle prevents normal user to change settings of super-admin users.

To find more information :

244 questions
0
votes
1 answer

Sonata admin enhanced view for security roles

In sonata admin the roles are based on admin services name with CRUD export and master permissions but the way it looks not so user friendly to create groups for others user or assign specific permissions to a user considering an example for sonata…
M Khalid Junaid
  • 63,861
  • 10
  • 90
  • 118
0
votes
1 answer

Upgrading to Symfony 2.6 causes issue with ApplicationSonataUserExtension

I am currently trying to upgrade to Symfony 2.6. Everything went smoothly except that I got this error after running composer.phar update [Symfony\Component\Debug\Exception\ContextErrorException] …
Etienne Noël
  • 5,988
  • 6
  • 48
  • 75
0
votes
1 answer

Method "defaultAvatar" for object "Sonata\UserBundle\Twig\GlobalVariables" does not exist?

I have installed FOSUserBundle, SonataUserBundle and SonataAdminBundle part of my kernel: $bundles = array( (...) new FOS\UserBundle\FOSUserBundle(), new Sonata\CoreBundle\SonataCoreBundle(), new…
Greg Motyl
  • 2,478
  • 17
  • 31
0
votes
1 answer

SonataAdminBundle + styles don't show properly

Any idea why my admin area shows like this: I installed assets with no problem. and here is my config.ylm file: fos_user: db_driver: orm firewall_name: main user_class: Acme\CoreBundle\Entity\User group: …
cute.S
  • 361
  • 4
  • 17
0
votes
2 answers

SonataUserBundle : try to go /profile => route "sonata_customer_addresses" does not exist

I can't figured out why I have this error. Herewith more informations abour my problem : An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "sonata_customer_addresses" as such route does…
0
votes
1 answer

Filter users by fullname in configureDatagridFilters

I'm trying to filter the user list with de getFullname() method, with no result. $filterMapper ->add('fullname', null, array('label' => 'Full name')) FileTypeGuesser don't find the property 'fullname'.
Cobak
  • 31
  • 4
0
votes
0 answers

Symfony: ManyToMany relationship between Sonata User and my bundle Entity

I'm trying to create a ManyToMany relationship between Sonata's User and an entity called "Network" that resides in my bundle. The idea is to be able to assign multiple Networks to each user via the User creation/edition of SonataAdmin. Here's what…
0
votes
1 answer

symfony2 : sonata userbundle + fos userbundle + mongodb => error "sonata.user.mongodb.user_manager" does not exist

I'm trying to use Sonata/UserBundle with mongodb but I'm facing an issue. I've got an ugly error: The service definition "sonata.user.mongodb.user_manager" does not exist. Here is the concerned configuration part : # in…
0
votes
0 answers

Dashboard and login page complete blank sonata admin bundle

About 3 days ago I updated my composer to install another bundle. Since then my /admin/login and /admin/dashboard routes are complete blank (a blank page html) No errors, no warnings, nothing. If I remove Roles I can access entites admin page…
Munir
  • 739
  • 2
  • 14
  • 38
0
votes
1 answer

Sonata Easy-Extends bundle won't install

I am trying to set up the Sonata User Bundle. As per the instructions I am also trying to install Sonata Easy-Extends (according to these instructions). Unfortunately, I can't get Easy-Extends installed via composer (on Win7): >composer require…
matt_jay
  • 1,241
  • 1
  • 15
  • 33
0
votes
0 answers

Hiding Sonata Admin Menu Elements By Role

I have read widely and tried examples but still cannot get the hang of Symfony2 ROLEs and Sonata Admin. I have four levels of users, SuperAdmin which is basically me the developer Admin who is the application owner. He has access to everything…
Masinde Muliro
  • 1,175
  • 3
  • 24
  • 38
0
votes
1 answer

overriding ChangePasswordFOSUser1Controller prints code on login page

I'm curently developing an app on Symfony 2.5.0 using FOSUSerBundle, SonataAdminBundle and SonataUserBundle. I've extended FOSUserbundle so my AppKernel.php has new Sonata\UserBundle\SonataUserBundle('FOSUserBundle') and I also generated my own…
0
votes
1 answer

SonataAdminBundle and FOSUserBundle error message for security.role_hierarchy.roles

I use FosUserBundle and SonataUserBundle for my Symfony2 project. I've got error message: The service "sonata.user.editable_role_builder" has a dependency on a non-existent parameter `security.role_hierarchy.roles`
0
votes
3 answers

How can I assign default role to user in Symfony2

I want to assign default role to user after he is registered. I have implemented FOSUserBundle extended by SonataUserBundle. Unfortunetly SonataUserBundle requires FOSUserBundle ~1.3 and event listeners are only since FOSUserBundle 2.0. Is there…
Greg Motyl
  • 2,478
  • 17
  • 31
0
votes
2 answers

How can I override the layout of the form at /admin/sonata/user/user/{id}/edit

I have extended the Sonata UserAdmin by creating Application\Sonata\UserBundle\Admin\Model\UserAdmin and extending Admin, then commenting out some fields I would rather not display. From sonata_user in config.yml: admin: # Admin…
codecowboy
  • 9,835
  • 18
  • 79
  • 134