diff --git a/app/controllers/rooms_controller.rb b/app/controllers/rooms_controller.rb index 313f27a7..aae578de 100644 --- a/app/controllers/rooms_controller.rb +++ b/app/controllers/rooms_controller.rb @@ -75,36 +75,9 @@ class RoomsController < ApplicationController render :cant_create_rooms end else -<<<<<<< HEAD return redirect_to root_path, flash: { alert: I18n.t("room.invalid_provider") } if incorrect_user_domain - # Get users name - @name = if current_user - current_user.name - elsif cookies.encrypted[:greenlight_name] - cookies.encrypted[:greenlight_name] - else - "" - end - - @search, @order_column, @order_direction, pub_recs = - public_recordings(@room.bbb_id, params.permit(:search, :column, :direction), true) - - @pagy, @public_recordings = pagy_array(pub_recs) - - render :join - end - end - - # PATCH /:room_uid - def update - if params[:setting] == "rename_header" - update_room_attributes("name") - elsif params[:setting] == "rename_recording" - update_recording(params[:record_id], "meta_name" => params[:record_name]) -======= show_user_join ->>>>>>> GRN2-196: Fixed issues that scrutinizer is complaining about (#765) end end diff --git a/spec/controllers/rooms_controller_spec.rb b/spec/controllers/rooms_controller_spec.rb index d2d7685f..de2ec06e 100644 --- a/spec/controllers/rooms_controller_spec.rb +++ b/spec/controllers/rooms_controller_spec.rb @@ -126,7 +126,7 @@ describe RoomsController, type: :controller do it "redirects to root if the providers dont match" do allow(Rails.configuration).to receive(:loadbalanced_configuration).and_return(true) - allow_any_instance_of(Room).to receive(:running?).and_return(false) + allow_any_instance_of(BbbServer).to receive(:room_running?).and_return(true) @owner.update_attribute(:provider, "provider1") @user.update_attribute(:provider, "provider2")