class SandwichViewSet(ModelViewSet): permission_classes = [IsAuthenticated] @action(..., permission_classes=[CanSeeIngredients]) def retrieve__ingredients(self, request): ...