forked from External/greenlight
		
	Fixed issue with api_concern (#406)
This commit is contained in:
		
				
					committed by
					
						 Jesus Federico
						Jesus Federico
					
				
			
			
				
	
			
			
			
						parent
						
							6e0b232c3e
						
					
				
				
					commit
					5daa5bab45
				
			| @@ -32,7 +32,13 @@ module APIConcern | |||||||
|   # Sets a BigBlueButtonApi object for interacting with the API. |   # Sets a BigBlueButtonApi object for interacting with the API. | ||||||
|   def bbb |   def bbb | ||||||
|     @bbb ||= if Rails.configuration.loadbalanced_configuration |     @bbb ||= if Rails.configuration.loadbalanced_configuration | ||||||
|       lb_user = retrieve_loadbalanced_credentials(owner.provider) |       if instance_of? Room | ||||||
|  |         # currently in the Room Model | ||||||
|  |         lb_user = retrieve_loadbalanced_credentials(owner.provider) | ||||||
|  |       elsif instance_of? User | ||||||
|  |         # currently in the User Model | ||||||
|  |         lb_user = retrieve_loadbalanced_credentials(provider) | ||||||
|  |       end | ||||||
|       BigBlueButton::BigBlueButtonApi.new(remove_slash(lb_user["apiURL"]), lb_user["secret"], "0.8") |       BigBlueButton::BigBlueButtonApi.new(remove_slash(lb_user["apiURL"]), lb_user["secret"], "0.8") | ||||||
|     else |     else | ||||||
|       BigBlueButton::BigBlueButtonApi.new(remove_slash(bbb_endpoint), bbb_secret, "0.8") |       BigBlueButton::BigBlueButtonApi.new(remove_slash(bbb_endpoint), bbb_secret, "0.8") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user