#6485·reaction

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

  1. Sign in as an admin
  2. Select a shop
  3. Invite user by email and set an account group for the current shop
  4. 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