Unverified Commit 8074e669 authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #3095 from jumpserver/dev_beta_node

[Bugfix] 解决授权了一个节点,当移动节点后,被移动的节点下的资产会放到未分组节点下的问题
parents 7a133be7 8e209b0f
...@@ -112,6 +112,7 @@ def on_node_assets_changed(sender, instance=None, **kwargs): ...@@ -112,6 +112,7 @@ def on_node_assets_changed(sender, instance=None, **kwargs):
@receiver(post_save, sender=Node) @receiver(post_save, sender=Node)
def on_node_update_or_created(sender, instance=None, created=False, **kwargs): def on_node_update_or_created(sender, instance=None, created=False, **kwargs):
if instance and not created: if instance and not created:
Asset.expire_all_nodes_keys_cache()
instance.expire_full_value() instance.expire_full_value()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment