mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-09-05 20:07:25 +00:00
fix(forge/gitlab): use group Path instead of Name for membership lookup (#7086)
This commit is contained in:
@@ -706,7 +706,7 @@ func (g *GitLab) OrgMembership(ctx context.Context, u *model.User, owner string)
|
||||
}
|
||||
var gid int64
|
||||
for _, group := range groups {
|
||||
if group.Name == owner {
|
||||
if group.Path == owner {
|
||||
gid = group.ID
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user