Skip to content

Commit

Permalink
Merge pull request #907 from arawa/fix/delete-a-user-when-adding-him-…
Browse files Browse the repository at this point in the history
…to-another-group/901

We tests it and it's okay 👍
  • Loading branch information
zak39 authored Nov 22, 2023
2 parents 28309d3 + 05ad10a commit 00d6da3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Fix/move v300 constant/stable3.0 ( [#845](https://github.com/arawa/workspace/pull/845) )
- Repair the migration v3.0.0 and v3.0.1 ( [#843](https://github.com/arawa/workspace/pull/843/files) )
- fix/delete-a-user-when-adding-him-to-another-group/901 ( [#907](https://github.com/arawa/workspace/pull/907) )

# [3.0.1] - 2023-05-26

Expand Down
9 changes: 0 additions & 9 deletions src/SelectUsers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,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 00d6da3

Please sign in to comment.