gas-drf/gas_drf/mixins.py

11 lines
261 B
Python
Raw Normal View History

2022-03-21 17:48:13 +01:00
from rest_framework.authentication import SessionAuthentication
from .permissions import HasValidRole
class GASAuthMixin:
authentication_classes = [SessionAuthentication]
permission_classes = [HasValidRole]
base_role = 'admins'
roles = set()