Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
04cbc0b5
authored
Apr 04, 2015
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: handle empty subject_id in get_available_group_codes()
parent
34e73101
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
circle/dashboard/views/group.py
+2
-0
No files found.
circle/dashboard/views/group.py
View file @
04cbc0b5
...
@@ -63,6 +63,8 @@ class GroupCodeMixin(object):
...
@@ -63,6 +63,8 @@ class GroupCodeMixin(object):
client
=
Saml2Client
(
conf
,
state_cache
=
state
,
client
=
Saml2Client
(
conf
,
state_cache
=
state
,
identity_cache
=
IdentityCache
(
request
.
session
))
identity_cache
=
IdentityCache
(
request
.
session
))
subject_id
=
_get_subject_id
(
request
.
session
)
subject_id
=
_get_subject_id
(
request
.
session
)
if
not
subject_id
:
return
newgroups
identity
=
client
.
users
.
get_identity
(
subject_id
,
identity
=
client
.
users
.
get_identity
(
subject_id
,
check_not_on_or_after
=
False
)
check_not_on_or_after
=
False
)
if
identity
:
if
identity
:
...
...
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