fix: 修改校对资产数量permbug (#7777)

Co-authored-by: feng626 <1304903146@qq.com>
pull/7784/head
fit2bot 2022-03-09 15:01:44 +08:00 committed by GitHub
parent 94e60e180e
commit 9ca0eaf7ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ class NodeViewSet(SuggestionMixin, OrgBulkModelViewSet):
search_fields = ('value', ) search_fields = ('value', )
serializer_class = serializers.NodeSerializer serializer_class = serializers.NodeSerializer
rbac_perms = { rbac_perms = {
'match': 'assets.match_node' 'match': 'assets.match_node',
'check_assets_amount_task': 'assets.change_node'
} }
@action(methods=[POST], detail=False, url_path='check_assets_amount_task') @action(methods=[POST], detail=False, url_path='check_assets_amount_task')