Second Site: Access rights for BE users

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

Second Site: Access rights for BE users

Post by cnoelker » 17 Jul 2020, 08:20

Hello,
how can I configure access rights to a second site (beside default) for a backend user?
I am admin and I can switch between the sites. But the other BE users see only the default and they need to access the second site, too.
Claudia

cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

Re: Second Site: Access rights for BE users

Post by cnoelker » 17 Jul 2020, 10:53

I checked in this page: https://aimeos.org/docs/TYPO3/Backend_access_control

For a test, I created a group 'super' and assigned user to it. This works, the users can access all sites - and also all panels.
Which is not good, because they are easily able to mis-configure the shops.

Is there a way to either restrict the panels for this super user or to configure which editor group is allowed to access which panel?

The help page says "Access to the panels editors need for their daily work in one site".
Is this always only the 'default' site?

Claudia

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

Re: Second Site: Access rights for BE users

Post by aimeos » 20 Jul 2020, 10:49

In TYPO3 the site ID isn't stored for backend users so there's no possibility to restrict TYPO3 backend users to only one site (default or another). What should be possible is to assign the "editor" group to non-admin backend users so they can manage products, categories, etc. in ALL sites. The panels which are accessible by backend users with "editor" or "admin" group is configurable.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

Re: Second Site: Access rights for BE users

Post by cnoelker » 20 Jul 2020, 12:09

I would be fine if it would work as described. But it doesn't.

I have a group named "editor" (exactly like this) and the backend users are assigned to this group.
I also configured module.tx_aimeos.settings.admin.jqadm to provide access rights for "editor".
However, the users only see the default shop, and not the second site.

If I assign "super", then the users can see both sites. However, I don't want to give these universal rights to them.

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

Re: Second Site: Access rights for BE users

Post by aimeos » 22 Jul 2020, 07:35

The site switcher isn't displayed for admins and editors, only for super admins.

There may be a chance if you enable displaying the page tree when the Aimeos admin backend is active (in the TYPO3 "Settings" -> aimeos -> backend) and configuring different site codes depending on the page tree the editor clicks. The configuration should be something like:

Code: Select all

module.tx_aimeos.settings.mshop.locale.site = <sitecode>
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

Re: Second Site: Access rights for BE users

Post by cnoelker » 22 Jul 2020, 08:09

Hmm... how can an editor manage products, categories, etc. in ALL sites (as you wrote) if he has no access to the site switcher at all?

I changed the backend settings and configured the
module.tx_aimeos.settings.mshop.locale.list (and list liste also), although the "e" might be a typo?

However, this had no effect. From your explanation, I would expect that the site in aimeos is selected according to this setting, i.e. if the user clicks on the page tree for the second site, then the associated aimeos site would be used.

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

Re: Second Site: Access rights for BE users

Post by aimeos » 22 Jul 2020, 08:18

Sorry, mistyped: It must be "site" not "liste"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

Re: Second Site: Access rights for BE users

Post by cnoelker » 22 Jul 2020, 08:31

I set this for the site named "preorder", but it does not have any effect.

module.tx_aimeos.settings.mshop.locale.site = preorder

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

Re: Second Site: Access rights for BE users

Post by aimeos » 16 Nov 2020, 13:18

Access to a site can be now granted for BE users and the patch will be part of the next 2020.10 LTS release:
https://github.com/aimeos/aimeos-typo3/ ... 6a16cdeab9
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply