from djangochannelsrestframework.consumers import AsyncAPIConsumer
from rest_framework.permissions import BasePermission as DRFBasePermission
class PermissionA(DRFBasePermission):
...
class PermissionB(DRFBasePermission):
...
class PermissionC(DRFBasePermission):
...
class PermissionD(DRFBasePermission):
...
class PermissionE(DRFBasePermission):
...
class MyConsumer(AsyncAPIConsumer):
permission_classes = (PermissionA | PermissionB, PermissionC & PermissionD, ~PermissionE)
...
Add support of DRF permission operands.
The problem: