8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 15:12:25 +00:00

Remove old code

This commit is contained in:
Gabriel Detraz 2017-12-30 02:00:03 +01:00 committed by root
parent 0d54c8ab86
commit aba1fcc9d0

View file

@ -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,