Self hosted FLOSS fitness/workout, nutrition and weight tracker
Only show log button if user is allowed to edit it
Roland Geider83300d623947
diff --git a/wger/nutrition/templates/plan/view.html b/wger/nutrition/templates/plan/view.htmlindex 8b1ea1f47..dd72f7b51 100644--- a/wger/nutrition/templates/plan/view.html+++ b/wger/nutrition/templates/plan/view.html@@ -295,9 +295,12 @@ function wgerCustomModalInit(){% endif %}</tbody></table>++{% if is_owner %}<p><a href="{% url 'nutrition:log:add' plan.pk %}" class="btn btn-success btn-sm wger-modal-dialog">{% trans "Add custom diary entry" %}</a></p>+{% endif %}{% endblock %}