Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
5f23c358
Commit
5f23c358
authored
Sep 12, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改remote app tree node
parent
bdcf9ba1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
remote_app_permission.py
apps/perms/utils/remote_app_permission.py
+1
-9
No files found.
apps/perms/utils/remote_app_permission.py
View file @
5f23c358
...
...
@@ -85,14 +85,6 @@ def construct_remote_apps_tree_root():
def
parse_remote_app_to_tree_node
(
parent
,
remote_app
):
system_user
=
remote_app
.
system_user
user
=
{
'id'
:
system_user
.
id
,
'name'
:
system_user
.
name
,
'username'
:
system_user
.
username
,
'protocol'
:
system_user
.
protocol
,
'login_mode'
:
system_user
.
login_mode
,
}
pid
=
parent
.
id
if
parent
else
''
tree_node
=
{
'id'
:
remote_app
.
id
,
...
...
@@ -102,6 +94,6 @@ def parse_remote_app_to_tree_node(parent, remote_app):
'open'
:
False
,
'isParent'
:
False
,
'iconSkin'
:
'file'
,
'meta'
:
{
'type'
:
'remote_app'
,
'user'
:
user
}
'meta'
:
{
'type'
:
'remote_app'
}
}
return
TreeNode
(
**
tree_node
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment