diff --git a/models/list_rights.go b/models/list_rights.go index 480d4adf82e..977350b34e1 100644 --- a/models/list_rights.go +++ b/models/list_rights.go @@ -68,7 +68,7 @@ func (l *List) checkListTeamRight(user *User, r TeamRight) bool { exists, err := x.Select("l.*"). Table("list"). 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_list", "tl"}, "l.id = tl.list_id"). Join("LEFT", []string{"team_members", "tm2"}, "tm2.team_id = tl.team_id").