From 5367af07d8c6c89e4e30d860776a81c499874f3c Mon Sep 17 00:00:00 2001 From: "zia.fazal@arbisoft.com" Date: Thu, 9 Jan 2020 16:06:51 +0500 Subject: [PATCH] Unmarked name field of content gating partition Unmarked name field of content gating partition. edX mobile apps expect it in english. If value of name field of content gating partition is not `Feature-based Enrollments` string literal mobile apps ignore gating restriction and try to pull content of the block which cause 404 errors for all those blocks which are gated. ENT-2524 --- openedx/features/content_type_gating/partitions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openedx/features/content_type_gating/partitions.py b/openedx/features/content_type_gating/partitions.py index df0735d53d..c2e7ebc3cf 100644 --- a/openedx/features/content_type_gating/partitions.py +++ b/openedx/features/content_type_gating/partitions.py @@ -65,7 +65,9 @@ def create_content_gating_partition(course): partition = content_gate_scheme.create_user_partition( id=CONTENT_GATING_PARTITION_ID, - name=_(u"Feature-based Enrollments"), + # Content gating partition name should not be marked for translations + # edX mobile apps expect it in english + name=u"Feature-based Enrollments", description=_(u"Partition for segmenting users by access to gated content types"), parameters={"course_id": six.text_type(course.id)} )