From 3d2f97b50fd2d2611f921b684333f12e7a090284 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Mon, 6 Mar 2023 17:53:01 +0100 Subject: [PATCH] remove explicit permission checks --- recipes/templates/recipe.html | 2 -- recipes/templates/recipes.html | 14 +++++--------- recipes/templates/version.html | 2 -- recipes/views.py | 7 +------ templates/base_main.html | 2 +- templates/index.html | 4 +--- 6 files changed, 8 insertions(+), 23 deletions(-) diff --git a/recipes/templates/recipe.html b/recipes/templates/recipe.html index 6a932f0..08d20d9 100644 --- a/recipes/templates/recipe.html +++ b/recipes/templates/recipe.html @@ -2,10 +2,8 @@ {% block title %}{{ recipe.title }}{% endblock %} {% block main %}

{{ recipe.title }}

-{% if perms.recipes.add_recipe %}

Edit recipe name

Add version

-{% endif %}