mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-25 16:18:51 +01:00
remove unused helpdesk_settings alias
This commit is contained in:
parent
b1b89d1d6f
commit
05647d75ad
@ -1,11 +1,11 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from django.contrib.auth.decorators import user_passes_test
|
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
|
# apply a custom user validation condition
|
||||||
is_helpdesk_staff = helpdesk_settings.HELPDESK_CUSTOM_STAFF_FILTER_CALLBACK
|
is_helpdesk_staff = settings.HELPDESK_CUSTOM_STAFF_FILTER_CALLBACK
|
||||||
elif helpdesk_settings.HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE:
|
elif settings.HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE:
|
||||||
# treat 'normal' users like 'staff'
|
# treat 'normal' users like 'staff'
|
||||||
is_helpdesk_staff = lambda u: u.is_authenticated() and u.is_active
|
is_helpdesk_staff = lambda u: u.is_authenticated() and u.is_active
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user