mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 09:50:05 +00:00
Initial commit
This commit is contained in:
14
api/mixins.py
Normal file
14
api/mixins.py
Normal file
@ -0,0 +1,14 @@
|
||||
from rest_framework import permissions
|
||||
|
||||
from .permissions import IsStaffEditorPermission
|
||||
|
||||
# from knox.auth import TokenAuthentication
|
||||
|
||||
|
||||
class StaffEditorPermissionMixin:
|
||||
permission_classes = [
|
||||
# permissions.IsAdminUser,
|
||||
permissions.IsAuthenticated,
|
||||
IsStaffEditorPermission,
|
||||
# TokenAuthentication,
|
||||
]
|
Reference in New Issue
Block a user