Sonata Admin User – ACL Setup

Trying to use the ACL mode for Sonata Admin.

From the docs I understand that STAFF should have [“EDIT”,”LIST”,”CREATE”] permissions

But when I install the ACL mappings:

$ php app/console sonata:admin:setup-acl

I see that it’s doing (among others)

install ACL for sonata.user.admin.user

– add role: ROLE_SONATA_USER_ADMIN_USER_STAFF, permissions: [“LIST”,”CREATE”]

And indeed, staff don’t get EDIT permission when I try a user granted with it.

How can it happen ? How can I give my user this EDIT permission ?

sonata admin bundle acl-class-field and acl-object-field

How can i setup ACL with class-field-scope in sonata admin bundle Setting up the ACL with the SonataAdminBundle has been straightforward so far. Now I would like to dig a bit deeper. But I can not fin

ACL and Sonata Admin using inherited entities

I use inherited entities based on SINGLE_TABLE inheritance type. I can declare the admin service, setting setSubClasses in my config, as describe in the doc here: http://sonata-project.org/bundles/adm

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_bloc

Sonata Admin: Let users only edit entities they own (ACL)

I have Sonata Admin set up with ACLs. I have different users, groups and permissions which work fine. To achieve this, i followed the Sonata Admin documentation on ACLs. So here is my question: What i

Change password not working in FOS user bundle+ Sonata User bundle +sonata Admin Bundle

I’m able to integrate FOS bundle to sonata Admin bundle using Sonata User Bundle. My login thing works fine. Now i want to add functionality like change password which is there in FOSUserBundle to son

Store Logged in user data in sonata admin bundle

In Sonata Admin Bundle, there is a registration form. Admin and super admin can create user using that registration form. Everything is working. But, now i want to keep trackwho (admin or super-admin

Login wih the same login_check Sonata User bundle and Sonata admin bundle

I got a app who has Sonata User bundle and Sonata Admin bundle, but when I login with Sonata User bundle, and after I try to go to the admin page, I have to do login again, Some Know how to ingrate bo

Sonata (Admin/User/DoctrineORMAdmin) Bundle: Weird issue when creating user groups

I’ve managed to setup sonata admin/user/doctrineormadmin bundle with many many problems. Now it is all running smooth, I can manage my entities, I can add users, assign roles and I could even make use

Sonata admin overwritten user class

I have extended SonataUserBundle using SonataEasyExtendsBundle and removed some of the fields. The database table is created correctly. The problem is when trying to add an user in the Admin interface

Sonata User Bundle + Admin Bundle admin redirect after login

I’m trying to make sonata work like this: – if a regular user logs in he’s redirected to / – if an admin logs in he’s redirected to /admin/dashboard I tried to make it with firewalls that are in a

Answers

As nobody answered, let me give you my feedback (based on what I remember)

It seems to be because the default behavior of ACLs for SonataUser grants STAFF with EDIT access to users they have created (or for which they have ACE)