fix: add Learner as another role posted to LTI tools for the LTI embed (#30356)

Co-authored-by: Simon Chen <schen@edx-c02fw0guml85.lan>
This commit is contained in:
Simon Chen
2022-05-09 10:12:28 -04:00
committed by GitHub
parent 8f2eb38220
commit 192b35eb8f
2 changed files with 3 additions and 3 deletions

View File

@@ -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):

View File

@@ -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]:
"""