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
ede7365d
Unverified
Commit
ede7365d
authored
Aug 26, 2019
by
老广
Committed by
GitHub
Aug 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] remote app tree添加 User (#3159)
parent
57eed7fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
remote_app_permission.py
apps/perms/utils/remote_app_permission.py
+9
-1
No files found.
apps/perms/utils/remote_app_permission.py
View file @
ede7365d
...
@@ -74,6 +74,14 @@ def construct_remote_apps_tree_root():
...
@@ -74,6 +74,14 @@ def construct_remote_apps_tree_root():
def
parse_remote_app_to_tree_node
(
parent
,
remote_app
):
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
,
}
tree_node
=
{
tree_node
=
{
'id'
:
remote_app
.
id
,
'id'
:
remote_app
.
id
,
'name'
:
remote_app
.
name
,
'name'
:
remote_app
.
name
,
...
@@ -82,6 +90,6 @@ def parse_remote_app_to_tree_node(parent, remote_app):
...
@@ -82,6 +90,6 @@ def parse_remote_app_to_tree_node(parent, remote_app):
'open'
:
False
,
'open'
:
False
,
'isParent'
:
False
,
'isParent'
:
False
,
'iconSkin'
:
'file'
,
'iconSkin'
:
'file'
,
'meta'
:
{
'type'
:
'remote_app'
}
'meta'
:
{
'type'
:
'remote_app'
,
'user'
:
user
}
}
}
return
TreeNode
(
**
tree_node
)
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