From 1a1226700b07309dbbb6b63080fdcd8c09b493e1 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Tue, 24 Jan 2023 20:12:29 +0100 Subject: [PATCH] require login to create a new recipe --- Controllers/RecipeController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Controllers/RecipeController.php b/Controllers/RecipeController.php index d57a834..ede024f 100644 --- a/Controllers/RecipeController.php +++ b/Controllers/RecipeController.php @@ -51,6 +51,8 @@ final class RecipeController public function newAction(Array $A_urlParams = null, Array $A_postParams = null) { + Session::login_or_die(); + View::show("recipe/edit", array("POST_URI" => "/recipe/create", "RECIPE" => array())); }