1
0

Added check to only let a user delete his own list

This commit is contained in:
konrad
2018-06-12 18:35:36 +02:00
committed by kolaente
parent 5ba9d76328
commit be18247682
5 changed files with 56 additions and 9 deletions

View File

@ -16,11 +16,6 @@ func GetListsByUser(c echo.Context) error {
allLists, err := models.GetListsByUser(&currentUser)
if err != nil {
if models.IsErrListDoesNotExist(err) {
}
return c.JSON(http.StatusInternalServerError, models.Message{"Could not get lists."})
}