@@ -7,7 +7,6 @@ from opaque_keys.edx.keys import CourseKey
|
||||
|
||||
from common.djangoapps.student.roles import GlobalStaff
|
||||
from lms.djangoapps.learner_dashboard.config.waffle import (
|
||||
ENABLE_B2C_SUBSCRIPTIONS,
|
||||
ENABLE_MASTERS_PROGRAM_TAB_VIEW,
|
||||
ENABLE_PROGRAM_TAB_VIEW
|
||||
)
|
||||
@@ -50,19 +49,3 @@ def is_enrolled_or_staff(request, program_uuid):
|
||||
except ObjectDoesNotExist:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def b2c_subscriptions_is_enabled() -> bool:
|
||||
"""
|
||||
Check if B2C program subscriptions flag is enabled.
|
||||
"""
|
||||
return ENABLE_B2C_SUBSCRIPTIONS.is_enabled()
|
||||
|
||||
|
||||
def b2c_subscriptions_enabled(is_mobile=False) -> bool:
|
||||
"""
|
||||
Check whether B2C Subscriptions pages should be shown to user.
|
||||
"""
|
||||
if not is_mobile and b2c_subscriptions_is_enabled():
|
||||
return True
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user