1
0

Implemented Create and Update methods on list

This commit is contained in:
kolaente
2018-07-09 23:17:19 +02:00
parent 9e8f13edf6
commit b1de837c4f
12 changed files with 152 additions and 29 deletions

View File

@ -9,7 +9,7 @@ func DeleteListByID(listID int64, doer *User) (err error) {
}
if list.Owner.ID != doer.ID {
return ErrNeedToBeListOwner{ListID: listID, UserID: doer.ID}
return ErrNeedToBeListAdmin{ListID: listID, UserID: doer.ID}
}
// Delete the list