inviteShopMember clears account groups for other shops
Author: mowafyCreated Feb 9, 2021Updated Oct 14, 2024
Labelsbugneeds triage
Issue Description
Sending an invitation to already active account clears its already assigned groups
Steps to Reproduce
- Sign in as an admin
- Select a shop
- Invite user by email and set an account group for the current shop
- If user was already in a group of another shop, that group will be removed from account groups
Possible Solution
In case of an active user: use addAccountToGroup instead of updateGroupsForAccounts
Versions
reaction 3.11.0
Source: reactioncommerce/reaction