Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
88b838f6
Commit
88b838f6
authored
4 years ago
by
Sharon Wang
Browse files
Options
Downloads
Patches
Plain Diff
exception for profile
parent
910f1c45
Branches
Branches containing commit
Tags
release-2021-01-05-15.23
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openedx/core/djangoapps/user_authn/cookies.py
+5
-1
5 additions, 1 deletion
openedx/core/djangoapps/user_authn/cookies.py
with
5 additions
and
1 deletion
openedx/core/djangoapps/user_authn/cookies.py
+
5
−
1
View file @
88b838f6
...
...
@@ -219,6 +219,7 @@ def _set_deprecated_logged_in_cookie(response, cookie_settings):
return
response
def
_convert_to_absolute_uris
(
request
,
urls_obj
):
"""
Convert relative URL paths to absolute URIs
"""
for
url_name
,
url_path
in
six
.
iteritems
(
urls_obj
):
...
...
@@ -226,6 +227,7 @@ def _convert_to_absolute_uris(request, urls_obj):
return
urls_obj
def
_get_user_info_cookie_data
(
request
,
user
):
"""
Returns information that will populate the user info cookie.
"""
...
...
@@ -255,8 +257,10 @@ def _get_user_info_cookie_data(request, user):
header_urls
=
_convert_to_absolute_uris
(
request
,
header_urls
)
image_urls
=
{}
if
user
.
profile
:
try
:
image_urls
=
get_profile_image_urls_for_user
(
user
)
except
UserProfile
.
DoesNotExist
:
pass
image_urls
=
_convert_to_absolute_uris
(
request
,
image_urls
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment