Added docs via swagger
This commit is contained in:
@ -95,7 +95,7 @@ func DeleteListItemByID(itemID int64, doer *User) (err error) {
|
||||
|
||||
// Check if the user hat the right to delete that item
|
||||
if listitem.CreatedByID != doer.ID {
|
||||
return ErrNeedToBeItemOwner{ItemID:itemID, UserID: doer.ID}
|
||||
return ErrNeedToBeItemOwner{ItemID: itemID, UserID: doer.ID}
|
||||
}
|
||||
|
||||
_, err = x.ID(itemID).Delete(ListItem{})
|
||||
|
Reference in New Issue
Block a user