diff --git a/blti/roles.py b/blti/roles.py index 31a15c8..bce0634 100644 --- a/blti/roles.py +++ b/blti/roles.py @@ -5,6 +5,7 @@ LTI_1p3_ROLES_CLAIM = "https://purl.imsglobal.org/spec/lti/claim/roles" LTI_1p3_ROLE_PREFIX = "http://purl.imsglobal.org/vocab/lis/v2/" + def roles_from_role_name(role_names): roles = [] @@ -12,9 +13,10 @@ def roles_from_role_name(role_names): if role_name == 'User': roles += ["system/person#User"] elif role_name in ['Observer', 'Mentor']: - roles += ["institution/person#Observer", - "institution/person#Mentor", - "membership#Mentor"] + roles += [ + "institution/person#Observer", + "institution/person#Mentor", + "membership#Mentor"] elif role_name in ['Student', 'Learner']: roles += [ "institution/person#Learner",