1
0

Fixed getting all lists of one namespace

This commit is contained in:
kolaente
2018-07-04 08:56:52 +02:00
parent b57ca9375a
commit f59917e721
7 changed files with 68 additions and 56 deletions

View File

@ -10,12 +10,11 @@ func CreateOrUpdateListItem(item *ListItem) (newItem *ListItem, err error) {
}
// Check if the user exists
user, _, err := GetUserByID(item.CreatedBy.ID)
item.CreatedBy, _, err = GetUserByID(item.CreatedBy.ID)
if err != nil {
return
}
item.CreatedByID = item.CreatedBy.ID
item.CreatedBy = user
// TODO: Check if the user has the right to add/update an item to that list