Add translation for content gating access denied message

This commit is contained in:
Matt Tuchfarber
2018-11-26 13:27:12 -05:00
parent 174d80ed25
commit 8b5b92b01a

View File

@@ -100,7 +100,7 @@ class ContentTypeGatingPartition(UserPartition):
def access_denied_message(self, block, user, user_group, allowed_groups):
if self._is_audit_enrollment(user, block):
return "Graded assessments are available to Verified Track learners. Upgrade to Unlock."
return _(u"Graded assessments are available to Verified Track learners. Upgrade to Unlock.")
return None
def _is_audit_enrollment(self, user, block):