perf: 资产批量更新平台字段,根据平台约束协议自动生效 (#11818)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-10-12 18:11:51 +08:00
committed by GitHub
parent 116d0ba5c6
commit c0de27ff7a
3 changed files with 66 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ class AccountTemplateViewSet(OrgBulkModelViewSet):
}
rbac_perms = {
'su_from_account_templates': 'accounts.view_accounttemplate',
'sync_related_accounts': 'accounts.change_accounttemplate',
'sync_related_accounts': 'accounts.change_account',
}
@action(methods=['get'], detail=False, url_path='su-from-account-templates')