mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-08-09 23:07:38 +02:00
is_authenticated is a bool now not a function
This commit is contained in:
@ -113,7 +113,7 @@ class CustomStaffUserTestCase(StaffUserTestCaseMixin, TestCase):
|
||||
@staticmethod
|
||||
def custom_staff_filter(user):
|
||||
"""Arbitrary user validation function"""
|
||||
return user.is_authenticated() and user.is_active and user.username.lower().endswith('wensleydale')
|
||||
return user.is_authenticated and user.is_active and user.username.lower().endswith('wensleydale')
|
||||
|
||||
HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE = custom_staff_filter
|
||||
|
||||
|
Reference in New Issue
Block a user