Adding Group with Role Admin

Questions around the Aimeos bundle for the Symfony framework
Forum rules
Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Posts: 19
Joined: 14 Aug 2019, 08:13

Adding Group with Role Admin

Post by MSchrading » 24 Jan 2020, 08:36

Hi there.

My development environment:
(Symfony 4.3, php7.2, Aimeos 2019.10, Ubuntu 18.04)

under \vendor\aimeos\aimeos-symfony\Command\AccountCommand.php

we have the Account command for group Admin and Editor to set those users to the role Admin (ROLE_ADMIN)
Now we have the problem when we want to setup a new Group.

This new group should get the role ROLE_ADMIN automaticaly, when we deligate a user to this new group! We don't want to use the command line in the shell. But all user, who get the group ADMIN, EDITOR and specific added new group, should get the ROLE_ADMIN automaticaly. Otherwise it makes no sense to set a user to the admin group when he not as the ROLE_ADMIN rights!

Would you please give me some instruction and direction how to achive this?

Thank you

User avatar
Posts: 8020
Joined: 01 Jan 1970, 00:00

Re: Adding Group with Role Admin

Post by aimeos » 27 Jan 2020, 10:05

If you don't want to use the shell, you can extend the customer panel in the admin interface and add a select box with ROLE_ADMIN and ROLE_USER values. In the Customer JQAdm class, use the getRoles()/setRoles() methods of the customer item to set the selected role:
- ... #L138-L154
- ... hp#L68-L83
- ... #L544-L584

A pull request with your changes on Github is welcome :-)
Professional support and custom implementation are available at
If you like Aimeos, Image give us a star

Post Reply