Cannot apply custom group to user
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Cannot apply custom group to user
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
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
Re: Cannot apply custom group to user
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.
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, give us a star
If you like Aimeos, give us a star