diff --git a/pkg/models/project.go b/pkg/models/project.go index 41187c1481f..afb07a9aa50 100644 --- a/pkg/models/project.go +++ b/pkg/models/project.go @@ -416,6 +416,7 @@ func getUserProjectsStatement(parentProjectIDs []int64, userID int64, search str filterCond, getArchivedCond, parentCondition, + builder.NotIn("l.id", parentProjectIDs), )). OrderBy("position"). GroupBy("l.id")