diff --git a/authentik/admin/api/version.py b/authentik/admin/api/version.py index d12584f7c..441b41f6f 100644 --- a/authentik/admin/api/version.py +++ b/authentik/admin/api/version.py @@ -51,6 +51,9 @@ class VersionViewSet(ListModelMixin, GenericViewSet): permission_classes = [IsAdminUser] + def get_queryset(self): + return None + @swagger_auto_schema(responses={200: VersionSerializer(many=True)}) def list(self, request: Request) -> Response: """Get running and latest version.""" diff --git a/authentik/admin/api/workers.py b/authentik/admin/api/workers.py index 48bf248a7..998ffaa80 100644 --- a/authentik/admin/api/workers.py +++ b/authentik/admin/api/workers.py @@ -15,6 +15,9 @@ class WorkerViewSet(ListModelMixin, GenericViewSet): serializer_class = Serializer permission_classes = [IsAdminUser] + def get_queryset(self): + return None + def list(self, request: Request) -> Response: """Get currently connected worker count.""" return Response(