forked from External/greenlight
Fixes after merge (#786)
This commit is contained in:
parent
666ee12988
commit
55d4a21dcb
|
@ -75,36 +75,9 @@ class RoomsController < ApplicationController
|
||||||
render :cant_create_rooms
|
render :cant_create_rooms
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
<<<<<<< HEAD
|
|
||||||
return redirect_to root_path, flash: { alert: I18n.t("room.invalid_provider") } if incorrect_user_domain
|
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
|
show_user_join
|
||||||
>>>>>>> GRN2-196: Fixed issues that scrutinizer is complaining about (#765)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ describe RoomsController, type: :controller do
|
||||||
|
|
||||||
it "redirects to root if the providers dont match" do
|
it "redirects to root if the providers dont match" do
|
||||||
allow(Rails.configuration).to receive(:loadbalanced_configuration).and_return(true)
|
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")
|
@owner.update_attribute(:provider, "provider1")
|
||||||
@user.update_attribute(:provider, "provider2")
|
@user.update_attribute(:provider, "provider2")
|
||||||
|
|
Loading…
Reference in New Issue