From 11791c19dfeb4f398235f727afb44d9b0dbd8275 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Thu, 26 Jan 2023 21:21:56 +0100 Subject: [PATCH] only show edit/delete buttons if the user can use them --- Views/recipe/view.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Views/recipe/view.php b/Views/recipe/view.php index 1229232..bc837d8 100644 --- a/Views/recipe/view.php +++ b/Views/recipe/view.php @@ -37,10 +37,12 @@ $O_recipe = $A_view["RECIPE"];
By = $O_recipe->getAuthorOrAnon()->S_USERNAME ?>
- + I_AUTHOR_ID) { ?> + +