Commit c1f994cd authored by Willard's avatar Willard

Fix typo

parent b89e4930
...@@ -145,7 +145,7 @@ def edit_dish_review(dish_id, dish_review_id): ...@@ -145,7 +145,7 @@ def edit_dish_review(dish_id, dish_review_id):
@app.route('/api/dishes/<int:dish_id>/reviews/<int:dish_review_id>', methods=['DELETE']) @app.route('/api/dishes/<int:dish_id>/reviews/<int:dish_review_id>', methods=['DELETE'])
@auth.login_required @auth.login_required
def delete_dish_reviwe(dish_id, dish_review_id): def delete_dish_review(dish_id, dish_review_id):
review = DishReview.query.get(dish_review_id) review = DishReview.query.get(dish_review_id)
if review is None or g.user.id != review.user_id: if review is None or g.user.id != review.user_id:
return abort(401) return abort(401)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment