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
2 answers

Unable to extend ProfileFOSUser1Controller of sonata symfony

I am working in symfony sonata admin. I am trying to extend ProfileFOSUser1Controller but unable to extend it. I have tried by clearing the cache also but didn't work? This is my controller code:
0
votes
1 answer

Symfony2.8 with sonataEcommerce2.1.1 single Product page "requires that you provide a value for the "$product" argument"

I am using sonata-ecommerce. When I try to open single product page then Controller error occure. Here is detailed error. "Application\Sonata\ProductBundle\Controller\ProductController::viewAction()" requires that you provide a value for the…
Neha
  • 13
  • 4
0
votes
1 answer

Installation sonata-project/user-bundle symfony 3.3 lts

I create symfony app by 'symfony new' and get symfony 3.3 After that installed "sonata admin" and "Sonata doctrine orm admin" via composer All ok. Admin skeleton is working. But when i run "composer require sonata-project/user-bundle" i have version…
0
votes
0 answers

Get users from a group in SonataUserBundle

I need get users from a group. It seems it exists a many-tomany unidirectional, and I want to do it bidirectional. I have
0
votes
1 answer

Symfony 2.8: How to prevent editing user's service fields

I'm newby in Symfony, so excuse my ignorance. In my project i use Sonata User Bundle, with User entity extended by several fields. Some of them can be edited by user himself, while others are serviceable and they can only be edited by the admin. The…
0
votes
3 answers

Sonata admin bundle: display role wise sidebar menu

I successfully setup sonata admin bundle with acl editor. I am easily able to set user wise permission on object as well as roles users using acl editor. but when i trying to login using particular role then i cannot see in sidebar menu which i…
0
votes
1 answer

Override Users Form Sonata UserBundle

Hello I tried to follow the explanation given here: How to remove fields from the admin user create page of Sonata User Bundle? To add / remove lines to the Sonata Userbundle registration form but the problem is that I find myself for this error:…
jpp28
  • 61
  • 1
  • 18
0
votes
1 answer

How do i install fos-user-bundle "@2.0" alongside with Sonata-user-bundle?

I'm new to symfony framework I installed FOSUserBundle "@2.0" and SonataAdminBundle they are both working fine now i wanted to install SonataUserBundle to manage my users but in the downloading process [via composer] he said that SonataUserBundle is…
Wajdi Makhlouf
  • 93
  • 2
  • 3
  • 9
0
votes
1 answer

Sonata User Bundle security roles template override

I am using symphony 2.8 with sonata admin/user/fosuser bundle. Everything is working fine. I just want to override the security roles template because the roles title is not in meaningful. I have followed the below solution.…
Saif
  • 2,873
  • 2
  • 12
  • 30
0
votes
1 answer

Issue with cascading roles in symfony3 and sonata user bundle

I have my roles defined as follows: security: role_hierarchy: ROLE_PROFESSIONAL_SERVICES_MANAGER: [ROLE_USER, ROLE_SONATA_ADMIN, ROLE_BRANCH_ASSISTANT] When I try to check for permissions in my controller as…
Masinde Muliro
  • 1,175
  • 3
  • 24
  • 38
0
votes
1 answer

Access control for each Tables with SonataAdminBundle

For example I have two tables accessed by SonataAdminBundle now I would like to change the editable tables depending on user roll Manager(ROLL_Admin) -> can edit both tables User(ROLL_User) -> can edit only Item table. services: …
whitebear
  • 11,200
  • 24
  • 114
  • 237
0
votes
1 answer

Sonata User Bundle custom batch action

so as the title suggests, I need to add custom batch action to SonataUserBundle. With this action, the operator can send a message to all of the users (or selected ones). Therefore it needs to extend SonataAdminBundle in order to be able to add a…
Aien Saidi
  • 159
  • 7
  • 25
0
votes
1 answer

SonataUserBundle Symfony 3.1.7

Is it possible to user Symfony 3.1.7 + FosUserBundle 2.0dev AND SonataUserbundle 3.X ? I tried many installation but didn't get it. I also googled the question but some says that Sonata only works with FOSuserBundle 1.3 which doesn't work with…
Ahmed-F
  • 147
  • 1
  • 14
0
votes
1 answer

Roles for Sonata Admins

I am making use of SonataAdminBundle without SonataUserBundle, but with FOSUserBundle only. The reason is because I use Symfony 3, and SonataUserBundle doesn't work there. Now, I have 24 Admin services. I need to modify only one Admin Class so that…
Mentos93
  • 581
  • 1
  • 7
  • 28
0
votes
1 answer

How to configure sonata user bundle to get the result in the documentation

I want to have the same result in documentation Sonata symfony but look what I have after debugging some error. If u have any idea how to solve these errors please help me:
user6942996