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
87abe63a
Commit
87abe63a
authored
Nov 14, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复luna不显示多组织资产的问题
parent
4d26fd8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
api.py
apps/perms/api.py
+1
-2
No files found.
apps/perms/api.py
View file @
87abe63a
...
@@ -417,8 +417,7 @@ class UserGrantedNodeChildrenApi(ListAPIView):
...
@@ -417,8 +417,7 @@ class UserGrantedNodeChildrenApi(ListAPIView):
queryset
=
[]
queryset
=
[]
if
node_id
and
node_id
in
[
str
(
node
.
id
)
for
node
in
nodes_granted
]:
if
node_id
and
node_id
in
[
str
(
node
.
id
)
for
node
in
nodes_granted
]:
node
=
[
node
for
node
in
nodes_granted
if
str
(
node
.
id
)
==
node_id
][
node
=
[
node
for
node
in
nodes_granted
if
str
(
node
.
id
)
==
node_id
][
0
]
0
]
elif
len
(
root_nodes
)
==
1
:
elif
len
(
root_nodes
)
==
1
:
node
=
root_nodes
[
0
]
node
=
root_nodes
[
0
]
node
.
assets_amount
=
len
(
nodes_granted
[
node
])
node
.
assets_amount
=
len
(
nodes_granted
[
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