Implemented Create and Update methods on list
This commit is contained in:
parent
9e8f13edf6
commit
b1de837c4f
12 changed files with 152 additions and 29 deletions
|
|
@ -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."})
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue