From 05647d75adc4a61844d99cb067a8601b9b628315 Mon Sep 17 00:00:00 2001 From: Stefano Brentegani Date: Wed, 30 Jul 2014 13:25:57 +0200 Subject: [PATCH] remove unused helpdesk_settings alias --- helpdesk/decorators.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helpdesk/decorators.py b/helpdesk/decorators.py index 1226bf0d..0bc96b62 100644 --- a/helpdesk/decorators.py +++ b/helpdesk/decorators.py @@ -1,11 +1,11 @@ # -*- coding: utf-8 -*- from django.contrib.auth.decorators import user_passes_test -from helpdesk import settings as helpdesk_settings +from helpdesk import settings -if helpdesk_settings.HELPDESK_CUSTOM_STAFF_FILTER_CALLBACK: +if settings.HELPDESK_CUSTOM_STAFF_FILTER_CALLBACK: # apply a custom user validation condition - is_helpdesk_staff = helpdesk_settings.HELPDESK_CUSTOM_STAFF_FILTER_CALLBACK -elif helpdesk_settings.HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE: + is_helpdesk_staff = settings.HELPDESK_CUSTOM_STAFF_FILTER_CALLBACK +elif settings.HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE: # treat 'normal' users like 'staff' is_helpdesk_staff = lambda u: u.is_authenticated() and u.is_active else: