Fixed a bug where it was not possible for a user to see a namespace which could be access by a team the user was in
This commit is contained in:
parent
e85d3c4f36
commit
1f3f8afa85
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ func (l *List) checkListTeamRight(user *User, r TeamRight) bool {
|
||||||
exists, err := x.Select("l.*").
|
exists, err := x.Select("l.*").
|
||||||
Table("list").
|
Table("list").
|
||||||
Alias("l").
|
Alias("l").
|
||||||
Join("LEFT", []string{"team_namespaces", "tn"}, "tn.namespace_id = tn.id").
|
Join("LEFT", []string{"team_namespaces", "tn"}, " l.namespace_id = tn.namespace_id").
|
||||||
Join("LEFT", []string{"team_members", "tm"}, "tm.team_id = tn.team_id").
|
Join("LEFT", []string{"team_members", "tm"}, "tm.team_id = tn.team_id").
|
||||||
Join("LEFT", []string{"team_list", "tl"}, "l.id = tl.list_id").
|
Join("LEFT", []string{"team_list", "tl"}, "l.id = tl.list_id").
|
||||||
Join("LEFT", []string{"team_members", "tm2"}, "tm2.team_id = tl.team_id").
|
Join("LEFT", []string{"team_members", "tm2"}, "tm2.team_id = tl.team_id").
|
||||||
|
|
Loading…
Reference in a new issue