mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-29 18:18:49 +01:00
9 lines
274 B
Python
9 lines
274 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)
|