Browse Source

fix: 修复apikey perm (#7918)

Co-authored-by: feng626 <1304903146@qq.com>
pull/7925/head
fit2bot 3 years ago committed by GitHub
parent
commit
ec9e5da653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      apps/authentication/api/access_key.py
  2. 1
      apps/rbac/const.py

1
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']

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

Loading…
Cancel
Save