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
1
vote
0 answers

Symfony acl and role hierarchy in dashboard

I am pretty new to symfony and try to handle that framework. Use symfony 2.8 with sonata admin 2.3 and user bundle 2.2.5 Got some interesting situation with ACL roles adding. I have 2 roles in my project(user and admin) and needed to add one…
seegma14
  • 31
  • 1
  • 3
1
vote
2 answers

SonataUserBundle requirements problems with Symfony 3.3

I'am trying to require "sonata-project/user-bundle" with composer, but get following error: - sonata-project/user-bundle 3.2.4 requires friendsofsymfony/user-bundle ^1.3 -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1,…
1
vote
1 answer

Sonata Admin Bundle: for create new, how can I have user already selected?

I have two (2) Admins, UserAdmin and CarAdmin. From the list view of UserAdmin, I want to have a custom action that redirects to CarAdmin create view with the user already selected. So far I have managed to create a custom action with its…
1
vote
1 answer

Sonata sonata_type_model_list and inheritance entity

I have an issue with sonata_type_model_list and inheritance entity. I have these entities /** * @ORM\Entity() */ class Contract { /** * @var Provider * * @ORM\ManyToOne(targetEntity="Provider") * @ORM\JoinColumns({ * …
spezia
  • 183
  • 1
  • 1
  • 7
1
vote
0 answers

Sonata Admin render list of related entities in user form

I am using SonataAdminBundle along with SonataUserBundle to edit a list of users. I was able to extend the user entity following this post and customizing the user form in order to add new fields: Now I would like to add a list of related user…
StockBreak
  • 2,857
  • 1
  • 35
  • 61
1
vote
2 answers

SonataUserBundle Api Response returns empty JSON

I'm trying to get the JSON response of SonataUserBundle Api. So after following the config process from the Sonata HomePage docs It looks like this API returns an empty object
Houssem Cherif
  • 221
  • 1
  • 11
1
vote
0 answers

Sonata user bundle, with /profile show error

I'm using Sonata-Admin, Sonata-User and FOSUser. The admin panel works fine, but after the login of an user they are redirected to the route /profile with following error: An exception has been thrown during the compilation of a template ("Using…
Gothic
  • 43
  • 5
1
vote
2 answers

Composer Prototype of sonata bundles

I have a project which has a bundles fixed on a specific commits of bundles or at dev-master version. i whould like to fix the dependency of this project and i secceed to fix the majority of my bundles but i can't find the good combination of…
user6830821
1
vote
1 answer

Symfony2 / SonataUserBundle - Automatic Login after Registration

In my project I use Symfony 2.8, the SonataAdminBundle and the SonataUserBundle. I override the registerAction of the RegistrationController in the FOSUserBundle. After a successful registration I want that the User is automatically logged in in the…
1
vote
2 answers

Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle' in /app/AppKernel.php

I am new to Symfony. Trying to install sonata admin bundle. form: http://symfony.com/doc/current/bundles/SonataAdminBundle/getting_started/installation.html But I got an error at Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle' not found…
1
vote
2 answers

Symfony 2.8 : Edit service config

I'm trying to edit or override the config (admin_orm.xml) of a service (sonata.user.admin.user) which is created by SonataUserBundle. I'd like to be able to use the entitymanager in that service. Because i need to edit edit on another entity after…
Drin Racaj
  • 11
  • 3
1
vote
3 answers

Symfony/SonataUser - Error with abstract method of BaseUser

I'm trying to install SonataUserBundle so I followed documentation (& use EasyExtendBundle but I get this error: [Symfony\Component\Debug\Exception\FatalErrorException] Error: Class…
CyrilleGuimezanes
  • 1,598
  • 1
  • 18
  • 33
1
vote
2 answers

Editing default SonataUserBundle user entity

I'm using SonataUserBundle without extending FOSUserBundle. I wanted to change the default SonataUser entity, and add or remove some fields. here is the default User Entity which has been created with SonataEasyExtendsBundle
Aien Saidi
  • 159
  • 7
  • 25
1
vote
1 answer

Symfony 2.8 Twig_Error_Runtime Sonata Admin Bundle

Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("The "app.security" variable is not available.") in SonataAdminBundle::standard_layout.html.twig at line 183. Now I did not think that this was possible, app being…
David Soussan
  • 2,698
  • 1
  • 16
  • 19
1
vote
1 answer

Add button to run an ajax action in sonata user list

I'd like to add a button in sonata user list. This button is supposed to run a custom controller in ajax mode. How do I do that? sonata-project/user-bundle 2.2.4 Symfony SonataUserBundle sonata-project/admin-bundle 2.3.7…
smarber
  • 4,829
  • 7
  • 37
  • 78