mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-07 20:08:58 +00:00
perf: Perm the template push account
This commit is contained in:
parent
bf195c1599
commit
cab1e0bf52
@ -105,6 +105,9 @@ class AssetPermissionSerializer(ResourceLabelsMixin, BulkOrgResourceModelSeriali
|
|||||||
def create_account_through_template(self, nodes, assets):
|
def create_account_through_template(self, nodes, assets):
|
||||||
if not self.template_accounts:
|
if not self.template_accounts:
|
||||||
return
|
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)
|
assets = self.get_all_assets(nodes, assets)
|
||||||
self.create_accounts(assets)
|
self.create_accounts(assets)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user