Skip to content

Commit

Permalink
fix(vue): Don't remove an user from a subgroup
Browse files Browse the repository at this point in the history
I deleted an old code which deletes an user as soon as him/her is added to
another a subgroup.

Resolve this issue: #901

Signed-off-by: Baptiste Fotia <[email protected]>
  • Loading branch information
zak39 committed Nov 22, 2023
1 parent 2ef2942 commit 8fc0ed8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/SelectUsers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,6 @@ export default {
this.allSelectedUsers.forEach(user => {
let gid = ''
if (this.$route.params.group !== undefined) {
if (this.$store.getters.isMember(this.$route.params.space, user)) {
if (user.role === 'user') {
this.$store.dispatch('removeUserFromGroup', {
name: this.$route.params.space,
gid: ManagerGroup.getGid(space),
user,
})
}
}
// Adding a user to a workspace 'subgroup
this.$store.dispatch('addUserToGroup', {
name: this.$route.params.space,
Expand Down

0 comments on commit 8fc0ed8

Please sign in to comment.