Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • B backend
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 56
    • Issues 56
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Notifications project
  • backend
  • Issues
  • #93
Closed
Open
Issue created Sep 06, 2021 by Emmanuel Ormancey@ormanceyOwner

[HOTFIX] Add member fails if a group is already member

Caetan> yeap, that's the problem, once you add a group you ca 't add new single members because it always throws an exception that a user belongs to a group actually, you can try to add a fake user and it will throw the same exception, because the if condition that checks if the user exists is after the isMemberByUserName check

Hello, I'm working on the test and I found a bug on the add members funcionality. Backend throws an error User whatsever is already in a member group. even if in fact the user doesn't belong to this group, so it's not possible to add any new single user if there is a group already added.

Since isMemberByUserName returns a false, and the filter does g.isMemberByUserName(this.membername)).length > 0 I guess that the problem is here

Edited Sep 06, 2021 by Emmanuel Ormancey
Assignee
Assign to
Time tracking