forked from External/greenlight
Added a BigBlueButton error page (#548)
This commit is contained in:
committed by
Jesus Federico
parent
c3d1ce3a04
commit
190fc57f5e
@ -29,6 +29,9 @@ class ApplicationController < ActionController::Base
|
||||
before_action :set_user_domain
|
||||
before_action :check_user_role
|
||||
|
||||
# Manually handle BigBlueButton errors
|
||||
rescue_from BigBlueButton::BigBlueButtonException, with: :handle_bigbluebutton_error
|
||||
|
||||
# Force SSL for loadbalancer configurations.
|
||||
before_action :redirect_to_https
|
||||
|
||||
@ -147,4 +150,9 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
end
|
||||
helper_method :check_user_role
|
||||
|
||||
# Manually Handle BigBlueButton errors
|
||||
def handle_bigbluebutton_error
|
||||
render "errors/bigbluebutton_error"
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user