Implemented Create and Update methods on list
This commit is contained in:
@ -16,8 +16,6 @@ func CreateOrUpdateListItem(item *ListItem) (newItem *ListItem, err error) {
|
||||
}
|
||||
item.CreatedByID = item.CreatedBy.ID
|
||||
|
||||
// TODO: Check if the user has the right to add/update an item to that list
|
||||
|
||||
if item.ID != 0 {
|
||||
_, err = x.ID(item.ID).Update(item)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user