1
0

Implemented proper check for team rights on lists

This commit is contained in:
kolaente
2018-07-25 00:40:24 +02:00
committed by konrad
parent 7dc8699cbd
commit f36eeb662a
3 changed files with 24 additions and 45 deletions

View File

@ -69,6 +69,7 @@ func (l *List) ReadAll(user *User) (interface{}, error) {
Where("tm.user_id = ?", fullUser.ID).
Or("tm2.user_id = ?", fullUser.ID).
Or("l.owner_id = ?", fullUser.ID).
GroupBy("l.id").
Find(&lists)
return lists, err