mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 18:31:10 +01:00
25542f929e
Will fail build if imports are not sorted correctly
8 lines
273 B
Python
8 lines
273 B
Python
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
|
|
from helpdesk.decorators import is_helpdesk_staff
|
|
|
|
|
|
class MustBeStaffMixin(LoginRequiredMixin, UserPassesTestMixin):
|
|
def test_func(self):
|
|
return is_helpdesk_staff(self.request.user)
|