This commit is contained in:
Thomas Rubini 2023-01-26 21:28:57 +01:00
parent 9014ca45f3
commit 4fdb49454f
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -40,7 +40,7 @@ $O_recipe = $A_view["RECIPE"];
<?php
$B_can_interact = (
$A_view["ADMIN"] ||
($A_view["USER_ID"] === $O_appr->I_AUTHOR_ID && $O_appr->I_AUTHOR_ID !== null)
($A_view["USER_ID"] === $O_recipe->I_AUTHOR_ID && $O_recipe->I_AUTHOR_ID !== null)
);
if ($B_can_interact) { ?>
<section class="buttonsEditRecipe">