mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-19 17:26:52 +00:00
perf: 修改应用授权树,没有的时候不显示
This commit is contained in:
parent
90d269d2a2
commit
08cd91c426
@ -32,6 +32,8 @@ class SerializeApplicationToTreeNodeMixin:
|
||||
return node
|
||||
|
||||
def serialize_applications_with_org(self, applications):
|
||||
if not applications:
|
||||
return []
|
||||
root_node = self.create_root_node()
|
||||
tree_nodes = [root_node]
|
||||
organizations = self.filter_organizations(applications)
|
||||
|
Loading…
Reference in New Issue
Block a user