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
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
f4e9f3ac
Unverified
Commit
f4e9f3ac
authored
7 years ago
by
Michael Youngstrom
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Made the certificates section on the user profile page site aware. WL-1289"
parent
7fc5a785
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openedx/features/learner_profile/views/learner_achievements.py
+0
-11
0 additions, 11 deletions
...dx/features/learner_profile/views/learner_achievements.py
with
0 additions
and
11 deletions
openedx/features/learner_profile/views/learner_achievements.py
+
0
−
11
View file @
f4e9f3ac
...
...
@@ -3,7 +3,6 @@ Views to render a learner's achievements.
"""
from
django.template.loader
import
render_to_string
from
student.views
import
get_org_black_and_whitelist_for_site
from
lms.djangoapps.certificates
import
api
as
certificate_api
from
openedx.core.djangoapps.certificates.api
import
certificates_viewable_for_course
from
openedx.core.djangoapps.content.course_overviews.models
import
CourseOverview
...
...
@@ -42,16 +41,6 @@ class LearnerAchievementsFragmentView(EdxFragmentView):
course_key
=
course_certificate
[
'
course_key
'
]
try
:
course_overview
=
CourseOverview
.
get_from_id
(
course_key
)
site_org_whitelist
,
site_org_blacklist
=
get_org_black_and_whitelist_for_site
(
request
.
user
)
# Filter out anything that is not in the whitelist.
if
site_org_whitelist
and
course_overview
.
location
.
org
not
in
site_org_whitelist
:
continue
# Conversely, filter out any enrollments in the blacklist.
elif
site_org_blacklist
and
course_overview
.
location
.
org
in
site_org_blacklist
:
continue
course_certificate
[
'
course
'
]
=
course_overview
if
certificates_viewable_for_course
(
course_overview
):
passing_certificates
.
append
(
course_certificate
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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