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:
parent
fe7ff40fce
commit
2db46f839e
@ -46,11 +46,15 @@ public class Role {
|
|||||||
for( int i=0; i < roles.length; i++){
|
for( int i=0; i < roles.length; i++){
|
||||||
if( roles[i].equals(FACULTY) ||
|
if( roles[i].equals(FACULTY) ||
|
||||||
roles[i].equals(URN_INSTITUTION_ROLE + FACULTY) ||
|
roles[i].equals(URN_INSTITUTION_ROLE + FACULTY) ||
|
||||||
|
roles[i].equals(URN_CONTEXT_ROLE + FACULTY) ||
|
||||||
roles[i].equals(INSTRUCTOR) ||
|
roles[i].equals(INSTRUCTOR) ||
|
||||||
roles[i].equals(URN_INSTITUTION_ROLE + INSTRUCTOR) ||
|
roles[i].equals(URN_INSTITUTION_ROLE + INSTRUCTOR) ||
|
||||||
|
roles[i].equals(URN_CONTEXT_ROLE + INSTRUCTOR) ||
|
||||||
roles[i].equals(MENTOR) ||
|
roles[i].equals(MENTOR) ||
|
||||||
roles[i].equals(URN_INSTITUTION_ROLE + 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;
|
response = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user