mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 06:46:24 +00:00
feat: 授权应用树API返回org_name字段
This commit is contained in:
@@ -88,6 +88,9 @@ class SerializeApplicationToTreeNodeMixin:
|
||||
def _serialize(self, application):
|
||||
method_name = f'_serialize_{application.category}'
|
||||
data = getattr(self, method_name)(application)
|
||||
data.update({
|
||||
'org_name': application.org_name
|
||||
})
|
||||
return data
|
||||
|
||||
def serialize_applications(self, applications):
|
||||
|
Reference in New Issue
Block a user