1
0

feat(projects): get all projects recursively

This commit is contained in:
kolaente
2022-12-29 19:25:09 +01:00
parent 4c698dc7c7
commit d799915e78
3 changed files with 57 additions and 21 deletions

View File

@ -77,7 +77,7 @@ func (l *Label) hasAccessToLabel(s *xorm.Session, a web.Auth) (has bool, maxRigh
builder.
Select("id").
From("tasks").
Where(builder.In("project_id", getUserProjectsStatement(u.ID, "", false).Select("l.id"))),
Where(builder.In("project_id", getUserProjectsStatement(nil, u.ID, "", false).Select("l.id"))),
)
ll := &LabelTask{}