1
0

fix(caldav): make sure only labels where the user has permission to use them are used

Follow-up for a62b57ac62
This commit is contained in:
kolaente
2023-03-05 14:03:09 +01:00
parent eda5135b3c
commit 066c26f83e
4 changed files with 70 additions and 31 deletions

View File

@ -151,8 +151,8 @@ func (l *Label) ReadAll(s *xorm.Session, a web.Auth, search string, page int, pe
return nil, 0, 0, err
}
return getLabelsByTaskIDs(s, &LabelByTaskIDsOptions{
Search: search,
return GetLabelsByTaskIDs(s, &LabelByTaskIDsOptions{
Search: []string{search},
User: u,
GetForUser: u.ID,
Page: page,