From ec9e5da6536be777e9f947f022171e131be6f065 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Fri, 18 Mar 2022 15:53:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dapikey=20perm=20(#7918?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: feng626 <1304903146@qq.com> --- apps/authentication/api/access_key.py | 1 - apps/rbac/const.py | 1 - 2 files changed, 2 deletions(-) diff --git a/apps/authentication/api/access_key.py b/apps/authentication/api/access_key.py index 716886c16..0762d0de9 100644 --- a/apps/authentication/api/access_key.py +++ b/apps/authentication/api/access_key.py @@ -8,7 +8,6 @@ from .. import serializers class AccessKeyViewSet(ModelViewSet): - permission_classes = (IsValidUser,) serializer_class = serializers.AccessKeySerializer search_fields = ['^id', '^secret'] diff --git a/apps/rbac/const.py b/apps/rbac/const.py index 780232e5a..8f2764d87 100644 --- a/apps/rbac/const.py +++ b/apps/rbac/const.py @@ -22,7 +22,6 @@ exclude_permissions = ( ('common', 'setting', '*', '*'), ('authentication', 'privatetoken', '*', '*'), - ('authentication', 'accesskey', 'change,delete', 'accesskey'), ('authentication', 'connectiontoken', 'change,delete', 'connectiontoken'), ('authentication', 'ssotoken', '*', '*'), ('authentication', 'superconnectiontoken', 'change,delete', 'superconnectiontoken'),