fix: 修复资产账号测试可连接性权限问题

pull/7677/head
feng626 2022-02-22 15:37:56 +08:00 committed by Jiangjie.Bai
parent 0c95faac04
commit e08db7423f
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ class AccountViewSet(OrgBulkModelViewSet):
'default': serializers.AccountSerializer, 'default': serializers.AccountSerializer,
'verify_account': serializers.AssetTaskSerializer 'verify_account': serializers.AssetTaskSerializer
} }
rbac_perms = {
'verify_account': 'assets.add_authbook'
}
def get_queryset(self): def get_queryset(self):
queryset = AuthBook.get_queryset() queryset = AuthBook.get_queryset()