Expand role detection to support Blackboard's LTI implementation

I found that Blackboard prefers to send the Instructor role within the
"urn:lti:role:ims/lis/" URN. The support was already here, I just
extended the detected roles. Hooray for Blackboard support in
BigBlueButton!
This commit is contained in:
Brandon Kish 2013-02-25 19:12:03 -05:00
parent fe7ff40fce
commit 2db46f839e

View File

@ -46,11 +46,15 @@ public class Role {
for( int i=0; i < roles.length; i++){
if( roles[i].equals(FACULTY) ||
roles[i].equals(URN_INSTITUTION_ROLE + FACULTY) ||
roles[i].equals(URN_CONTEXT_ROLE + FACULTY) ||
roles[i].equals(INSTRUCTOR) ||
roles[i].equals(URN_INSTITUTION_ROLE + INSTRUCTOR) ||
roles[i].equals(URN_CONTEXT_ROLE + INSTRUCTOR) ||
roles[i].equals(MENTOR) ||
roles[i].equals(URN_INSTITUTION_ROLE + MENTOR) ||
roles[i].equals(URN_INSTITUTION_ROLE + ADMINISTRATOR)
roles[i].equals(URN_CONTEXT_ROLE + MENTOR) ||
roles[i].equals(URN_INSTITUTION_ROLE + ADMINISTRATOR) ||
roles[i].equals(URN_CONTEXT_ROLE + ADMINISTRATOR)
){
response = true;
break;