From 941b587d72818c377e4a63ca16609ac75e6515e0 Mon Sep 17 00:00:00 2001 From: Luo Lu Date: Thu, 10 Mar 2022 09:46:12 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20fix=20oidc=20platform=20p?= =?UTF-8?q?ermission=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oauth2_provider/views/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oauth2_provider/views/base.py b/oauth2_provider/views/base.py index 83b901434..7fc66813c 100644 --- a/oauth2_provider/views/base.py +++ b/oauth2_provider/views/base.py @@ -117,7 +117,9 @@ def check_permission(self, request): type__in=['OIDC-Platform'], data__client_id = client_id, ).first() - if app and user.check_app_permission(tenant, app) is True: + # ToDo + # 验证是否购买 + if app: return True # arkstore 特殊处理