From 79037d52482b6fd4c45af6bb3427ad58e66d13de Mon Sep 17 00:00:00 2001 From: isummer Date: Mon, 15 Aug 2022 07:45:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BA=94=E7=94=A8=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E8=B6=85=E7=BA=A7=E7=AD=BE=E6=A3=80=E6=B5=8B=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/xsign/views/appinfo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fir_ser/xsign/views/appinfo.py b/fir_ser/xsign/views/appinfo.py index 631c8a4..0a297a5 100644 --- a/fir_ser/xsign/views/appinfo.py +++ b/fir_ser/xsign/views/appinfo.py @@ -146,4 +146,6 @@ class AppCanSignView(APIView): authentication_classes = [ExpiringTokenAuthentication, ] def get(self, request): - return ApiResponse(data={'sign': True}) + if check_super_sign_permission(request.user): + return ApiResponse(data={'sign': True}) + return ApiResponse(data={'sign': False})