is_authenticated is a bool now not a function

This commit is contained in:
Garret Wassermann
2018-03-04 04:24:30 -05:00
parent 54a6b1d21b
commit c71355cfdc
2 changed files with 4 additions and 4 deletions

View File

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