From 192b35eb8f63de7a3ec30603ca1ccd6deec56d2e Mon Sep 17 00:00:00 2001 From: Simon Chen Date: Mon, 9 May 2022 10:12:28 -0400 Subject: [PATCH] fix: add Learner as another role posted to LTI tools for the LTI embed (#30356) Co-authored-by: Simon Chen --- lms/djangoapps/learner_dashboard/programs.py | 2 +- openedx/features/lti_course_tab/tab.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/djangoapps/learner_dashboard/programs.py b/lms/djangoapps/learner_dashboard/programs.py index c91a1fde97..c4173da214 100644 --- a/lms/djangoapps/learner_dashboard/programs.py +++ b/lms/djangoapps/learner_dashboard/programs.py @@ -158,7 +158,7 @@ class ProgramLTI(ABC): """ Encapsulates methods for program LTI iframe rendering. """ - DEFAULT_ROLE = 'Student' + DEFAULT_ROLE = 'Student,Learner' ADMIN_ROLE = 'Administrator' def __init__(self, program_uuid, request): diff --git a/openedx/features/lti_course_tab/tab.py b/openedx/features/lti_course_tab/tab.py index 50f6315180..d199f9a1e6 100644 --- a/openedx/features/lti_course_tab/tab.py +++ b/openedx/features/lti_course_tab/tab.py @@ -29,11 +29,11 @@ class LtiCourseLaunchMixin: """ ROLE_MAP = { - 'student': 'Student', + 'student': 'Student,Learner', 'staff': 'Administrator', 'instructor': 'Instructor', } - DEFAULT_ROLE = 'Student' + DEFAULT_ROLE = 'Student,Learner' def _get_pii_lti_parameters(self, course: CourseBlock, request: HttpRequest) -> Dict[str, str]: """