forked from External/greenlight
		
	A warning message is shown when the BBB server configured is the one that comes by default
This commit is contained in:
		@@ -46,4 +46,14 @@ class ApplicationController < ActionController::Base
 | 
			
		||||
    USER_NAME_LIMIT
 | 
			
		||||
  end
 | 
			
		||||
  helper_method :user_name_limit
 | 
			
		||||
 | 
			
		||||
  def user_name_limit
 | 
			
		||||
    USER_NAME_LIMIT
 | 
			
		||||
  end
 | 
			
		||||
  helper_method :user_name_limit
 | 
			
		||||
 | 
			
		||||
  def bigbluebutton_endpoint_default?
 | 
			
		||||
    Rails.configuration.bigbluebutton_endpoint_default === Rails.configuration.bigbluebutton_endpoint
 | 
			
		||||
  end
 | 
			
		||||
  helper_method :bigbluebutton_endpoint_default?
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
@@ -28,7 +28,7 @@ module BbbApi
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def bbb
 | 
			
		||||
    @bbb ||= BigBlueButton::BigBlueButtonApi.new(bbb_endpoint + "api", bbb_secret, "0.8", true)
 | 
			
		||||
    @bbb ||= BigBlueButton::BigBlueButtonApi.new(bbb_endpoint + "api", bbb_secret, "0.8")
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def bbb_meeting_id(id)
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,9 @@
 | 
			
		||||
    <div class="center-block center-panel-size col-xs-12">
 | 
			
		||||
      <div class="panel panel-default">
 | 
			
		||||
        <div class="panel-body">
 | 
			
		||||
          <% if bigbluebutton_endpoint_default? %>
 | 
			
		||||
          <div class="panel-alert alert alert-danger"><%= t('warning_bigbluebutton_endpoint_default') %></div>
 | 
			
		||||
          <% end %>
 | 
			
		||||
          <h3 class="title-wrapper text-center">
 | 
			
		||||
            <%= yield :title %>
 | 
			
		||||
          </h3>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user