From 28154b25110071b9d2ec9291265c9d8e0ea0ba19 Mon Sep 17 00:00:00 2001 From: "zheng.shen" Date: Mon, 16 Dec 2024 12:14:12 +0800 Subject: [PATCH] update --- seahub/ai/apis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seahub/ai/apis.py b/seahub/ai/apis.py index f8b702d2da..76f0f636a6 100644 --- a/seahub/ai/apis.py +++ b/seahub/ai/apis.py @@ -282,9 +282,9 @@ def post(self, request): class Translate(APIView): - # authentication_classes = (TokenAuthentication, SessionAuthentication) - # permission_classes = (IsAuthenticated,) - # throttle_classes = (UserRateThrottle,) + authentication_classes = (TokenAuthentication, SessionAuthentication) + permission_classes = (IsAuthenticated,) + throttle_classes = (UserRateThrottle,) def post(self, request): if not verify_ai_config():