mirror of https://github.com/jumpserver/jumpserver
perf: 修改应用授权树,没有的时候不显示
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