Skip to content

Commit 6da6bbb

Browse files
authored
Fix: Check recipe authorized when adding to meal planner (#1119)
1 parent 8d61a38 commit 6da6bbb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/app/controller/planner/planner_controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def addPlannedRecipe(args, household_id):
7777
recipe = Recipe.find_by_id(args["recipe_id"])
7878
if not recipe:
7979
raise NotFoundRequest()
80+
recipe.checkAuthorized()
8081
cooking_date = (
8182
datetime.fromtimestamp(args["cooking_date"] / 1000, timezone.utc).date()
8283
if "cooking_date" in args

0 commit comments

Comments
 (0)