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
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
12 changed files with 152 additions and 29 deletions

View file

@ -49,7 +49,7 @@ func DeleteListByID(c echo.Context) error {
err = models.DeleteListByID(itemID, &user)
if err != nil {
if models.IsErrNeedToBeListOwner(err) {
if models.IsErrNeedToBeListAdmin(err) {
return c.JSON(http.StatusForbidden, models.Message{"You need to be the list owner to delete a list."})
}