From aba1fcc9d0dc097d7ba372cfba1d5e6bb203c70d Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Sat, 30 Dec 2017 02:00:03 +0100 Subject: [PATCH] Remove old code --- re2o/context_processors.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/re2o/context_processors.py b/re2o/context_processors.py index 0f9ea3fc..f696c3f4 100644 --- a/re2o/context_processors.py +++ b/re2o/context_processors.py @@ -39,28 +39,10 @@ def context_user(request): messages.warning(request, global_message) if user.is_authenticated(): interfaces = user.user_interfaces() - is_cableur = user.is_cableur - is_bureau = user.is_bureau - is_bofh = user.is_bofh - is_trez = user.is_trez - is_infra = user.is_infra - is_admin = user.is_admin else: interfaces = None - is_cableur = False - is_bureau = False - is_bofh = False - is_trez = False - is_infra = False - is_admin = False return { 'request_user': user, - 'is_cableur': is_cableur, - 'is_bureau': is_bureau, - 'is_bofh': is_bofh, - 'is_trez': is_trez, - 'is_infra': is_infra, - 'is_admin': is_admin, 'interfaces': interfaces, 'site_name': general_options.site_name, 'ipv6_enabled': machine_options.ipv6,