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:
@@ -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):
|
||||
|
||||
@@ -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]:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user