Cannot apply custom group to user

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
eddie128
Posts: 1
Joined: 02 Nov 2022, 08:13

Cannot apply custom group to user

Post by eddie128 » 02 Nov 2022, 08:33

As i know there's 3 group user in Aimeos: super, admin and editor.
Now i want create a new group (named "manager") that is only allowed to access specific panel (e.g: dashboard, orders), so i do it by login as super user and create a new group. And then i update the permission configuration in {my project root}\vendor\aimeos\ai-admin-jqadm\config\admin\jqadm\resource.php
I created a new user and set he is in "manager" group and tried to login to the admin site, but i cannot access to the admin.
If i changed to set the new user to editor group and tried again, i can access to the admin.
I already cleared the cache by command php artisan aimeos:clear after i updated the permission configuration.
Please let know is there something wrong? Is it possible to apply my custom group to the user in the aimeos?

Thanks

Aimeos version 2021.10
PHP 7.4
Windows 10

User avatar
aimeos
Administrator
Posts: 7906
Joined: 01 Jan 1970, 00:00

Re: Cannot apply custom group to user

Post by aimeos » 06 Nov 2022, 19:06

Think, the main problem is here in the Laravel Auth controller:
https://github.com/aimeos/aimeos-larave ... er.php#L41

It checks only for "admin" and "editor" groups but not for custom ones.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply