Skip to content

Commit

Permalink
LTI-346: fixed bug introduced in last implementation (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfederico authored Apr 12, 2024
1 parent 8526e24 commit 76702e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/rooms_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def set_chosen_room

def set_launch
# Pull the Launch request_parameters.
logger.debug('Pulling the Launch request_parameters.')
bbbltibroker_url = omniauth_bbbltibroker_url("/api/v1/sessions/#{@launch_nonce}")
get_response = RestClient.get(bbbltibroker_url, 'Authorization' => "Bearer #{omniauth_client_token(omniauth_bbbltibroker_url)}")
session_params = JSON.parse(get_response)
Expand Down Expand Up @@ -328,6 +329,8 @@ def launch_room(launch_params, tenant)
## Regular launch
logger.debug('This is a Regular launch...')
@room = Room.create(launch_room_params)
logger.debug(@room.errors.full_messages) if @room.errors.any?
return
end

# Legacy launch.
Expand Down

0 comments on commit 76702e5

Please sign in to comment.