Bucket users regardless of enrollment in courseware MFE experiment
This commit is contained in:
@@ -198,7 +198,7 @@ class CoursewareIndex(View):
|
||||
if getattr(self.section, 'is_time_limited', False):
|
||||
return
|
||||
# ALLOW: when flag set for course
|
||||
if REDIRECT_TO_COURSEWARE_MICROFRONTEND.is_enabled(self.course_key):
|
||||
if REDIRECT_TO_COURSEWARE_MICROFRONTEND.is_enabled():
|
||||
raise Redirect(self.microfrontend_url)
|
||||
|
||||
@property
|
||||
@@ -654,7 +654,7 @@ def show_courseware_mfe_link(user, staff_access, course_key):
|
||||
# course team preview CourseWaffleFlag for this course *or* if we've turned
|
||||
# on the redirect for your students.
|
||||
mfe_enabled_for_course_team = COURSEWARE_MICROFRONTEND_COURSE_TEAM_PREVIEW.is_enabled(course_key)
|
||||
mfe_experiment_enabled_for_course = REDIRECT_TO_COURSEWARE_MICROFRONTEND.is_experiment_on(course_key)
|
||||
mfe_experiment_enabled_for_course = REDIRECT_TO_COURSEWARE_MICROFRONTEND.is_experiment_on()
|
||||
|
||||
if staff_access and (mfe_enabled_for_course_team or mfe_experiment_enabled_for_course):
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user