From 9f52bed890a26936833a3c7b4e28564f3821f170 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Thu, 8 Aug 2019 19:18:33 +0200 Subject: [PATCH] Remove custom context processor --- logs/templates/logs/sidebar.html | 4 ---- med/context_processors.py | 5 ----- 2 files changed, 9 deletions(-) delete mode 100644 med/context_processors.py diff --git a/logs/templates/logs/sidebar.html b/logs/templates/logs/sidebar.html index 5037337..8ad6516 100644 --- a/logs/templates/logs/sidebar.html +++ b/logs/templates/logs/sidebar.html @@ -23,9 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. {% endcomment %} - {% block sidebar %} - {% if is_perm %} Évènements @@ -34,6 +32,4 @@ with this program; if not, write to the Free Software Foundation, Inc., Actions sur la bdd - - {% endif %} {% endblock %} diff --git a/med/context_processors.py b/med/context_processors.py deleted file mode 100644 index 880fd9b..0000000 --- a/med/context_processors.py +++ /dev/null @@ -1,5 +0,0 @@ -def context_user(request): - is_perm = request.user.has_perms(['perm']) - return { - 'is_perm': is_perm, - }