mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-04-27 19:17:01 +00:00
perf: Perm the template push account
This commit is contained in:
parent
01c5d68b35
commit
ea599d7695
@ -132,6 +132,9 @@ class AssetPermissionSerializer(ResourceLabelsMixin, BulkOrgResourceModelSeriali
|
||||
def create_account_through_template(self, nodes, assets):
|
||||
if not self.template_accounts:
|
||||
return
|
||||
if self.instance:
|
||||
assets = assets or self.instance.assets.all()
|
||||
nodes = nodes or self.instance.nodes.all()
|
||||
assets = self.get_all_assets(nodes, assets)
|
||||
self.create_accounts(assets)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user