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
447c3f31
Commit
447c3f31
authored
Jul 06, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改一个bug
parent
59927ffc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
models.py
apps/orgs/models.py
+0
-7
No files found.
apps/orgs/models.py
View file @
447c3f31
...
...
@@ -93,8 +93,6 @@ class Organization(models.Model):
@classmethod
def
get_user_admin_orgs
(
cls
,
user
):
if
cls
.
_user_admin_orgs
and
user
.
id
in
cls
.
_user_admin_orgs
:
return
cls
.
_user_admin_orgs
[
user
.
id
]
admin_orgs
=
[]
if
user
.
is_anonymous
:
return
admin_orgs
...
...
@@ -103,11 +101,6 @@ class Organization(models.Model):
admin_orgs
.
append
(
cls
.
default
())
elif
user
.
is_org_admin
:
admin_orgs
=
user
.
admin_orgs
.
all
()
if
cls
.
_user_admin_orgs
is
None
:
cls
.
_user_admin_orgs
=
{
user
.
id
:
admin_orgs
}
else
:
cls
.
_user_admin_orgs
[
user
.
id
]
=
admin_orgs
return
admin_orgs
@classmethod
...
...
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