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

How can I display User Management links on the Sonata Admin dashboard?

I'd like to render the links to user management and ACL editing on my SonataAdmin Dashboard. What do I need to add to sonata_block section? Also, what are these 'cms' and 'admin' contexts? sonata_block: default_contexts: [cms] blocks: …
0
votes
1 answer

Extending SonataAdmin User with ManyToMany field

I am currently trying to extend the SonataUserBundle's User to add a new ManyToMany relationship with a existing Entity. I extended the User based on the answer found here - Extending Sonata User Bundle and adding new fields User.php /** *…
patchrail
  • 2,007
  • 1
  • 23
  • 33
0
votes
1 answer

How can delete default block of SonataUserBundle or SonataMediaBundle in SonataAdminbundle list?

I do not know how can delete the default block of UserBundle, MediaBundle (just one of them...). This is my config.yml: dashboard: blocks: # display a dashboard block - { position: left, type:…
0
votes
1 answer

Symfony 2.3: «Bad credentials» on different browsers and different Firefox profiles (except one)

I was doing debugging on a different profile (called "Debugging") on Iceweasel (Firefox on Debian Linux) and other one called "Entertainment" (and Google Chrome too), and for my surprise I can't login on none of these, but I still can on the usual…
abiyi
  • 394
  • 2
  • 6
  • 16
0
votes
1 answer

Sonata User Bundle + FOS User bundle + Custom user bundle

i'm little confused.. I'm using sonata admin bundle in my project and i'd like to install user management for this, tell me please do i really have to install sonata user bundle? (i was using this tutorial…
ioppp
  • 25
  • 1
  • 6
0
votes
1 answer

FOSUserBundle 2.x + SonataUser = InvalidArgumentException

How do you fix this error in your configuration? I need SecurityHandler Support to make AJAX-login and registration forms in my Acme Bundle, so FUB 1.3 is useless for me. Thank you!
Serhii Matrunchyk
  • 9,083
  • 6
  • 34
  • 47
0
votes
1 answer

Symfony2 Sonata Admin Bundle as 'frontend'

We are running in a project which sort of looks like so: The customers can login to a controlpanel in which they can edit information. The information they edited will be pulled via a REST API by other software (this allready works in a previous…
Leroy
  • 1,600
  • 13
  • 23
0
votes
1 answer

How to add bundles in the Admin Dashboard Symfony2

I'm working on Sonata Admin bundles. I've configure the Admin Dashboard and the following components are showing in the "Symfony CMF" group, Here's the snapshot, I've gone through the Symfony CMF sandbox…
0
votes
0 answers

Debug a action method with XDebug, bypassing the login form on Symfony2

I'm debugging a Symfony 2.3 application with Sonata User and Sonata Admin bundles (with XDebug over Eclipse Kepler PDT) and I need to debug one specific form, but I want to bypass the login form and all the debug involved, because the process is too…
abiyi
  • 394
  • 2
  • 6
  • 16
0
votes
1 answer

SonataUserBundle + FOSUserBundle - overriding controllers

I'm using SonataUserBundle with FOSUserBundle. in AppKernel.php it looks like this: new FOS\UserBundle\FOSUserBundle(), new Sonata\UserBundle\SonataUserBundle('FOSUserBundle'), new…
0
votes
1 answer

How to get group from user in SonataUserBundle?

I'm using symfony 2.2.3 and sonata admin in dev-master. I would like a custom field to show users from a specific group. I've not found how to make the relation with Sonata User entity and Sonata Group entity. The doctrine schema create 3 tables :…
Perroin Thibault
  • 557
  • 1
  • 13
  • 27
0
votes
1 answer

SonataAdminBundle doesn't logout after accessing dashboard

Maybe this is a silly question and I just don't get it, but I'm trying to use Sonata and FOSUserBundle with a custom provider, I have my admin users in "myapp/backbundle/Entity/Administrador" everything works fine, I can access to my admin panel…
soni
  • 687
  • 1
  • 8
  • 23
0
votes
1 answer

Symfony form checkbox label translate

I am using Sonata Admin + Sonata ORM + Sonata User for editing users. When editing a user there are several checkboxes. Each checkbox has two labels (one before the checkbox and another one after the checkbox). Both labels have the same value but…
0
votes
1 answer

Remove a FormGroup from SonataUserAdmin in configureFormFields

I am having problems extending the UserAdmin and removing a FormGroup within the configureFormFields method. I can remove fields using: public function configureListFields(FormMapper $formMapper) { $formMapper ->with('Profile') …
Wesley van Opdorp
  • 14,888
  • 4
  • 41
  • 59
-1
votes
1 answer

Sonata Admin Bundle list users of a group

I have Sonata Admin Bundle and Sonata User Bundle (FOSUserBundle with users and groups). In UserAdmin.php I need to modify the list query to show only the user of a specific group. I tried with public function createQuery($context = 'list') { …
1 2 3
16
17