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'),