Merge pull request #161 from ThomasRubini/fix

fixed deleting recipe, expected post got nothing
This commit is contained in:
Djalim Simaila 2023-01-27 07:36:45 +01:00 committed by GitHub
commit 47dc93e203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,7 @@ final class RecipeController
{
Session::login_or_die();
$O_recipe = RecipeModel::getByID(Utils::intOrDie(Utils::getOrDie($A_postParams, "recipe_id")));
$O_recipe = RecipeModel::getByID(Utils::intOrDie(Utils::getOrDie($A_urlParams, 0)));
if ($O_recipe->I_AUTHOR_ID !== $_SESSION["ID"]) {
if(!Session::is_admin()){