forked from External/greenlight
GRN2-xx: Fixed issue with room join (#779)
* Fixed issue with room join * Rspec fix
This commit is contained in:
committed by
Jesus Federico
parent
201a394813
commit
061b69f962
@ -72,6 +72,8 @@ class RoomsController < ApplicationController
|
||||
render :cant_create_rooms
|
||||
end
|
||||
else
|
||||
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
|
||||
@ -356,4 +358,8 @@ class RoomsController < ApplicationController
|
||||
render :wait
|
||||
end
|
||||
end
|
||||
|
||||
def incorrect_user_domain
|
||||
Rails.configuration.loadbalanced_configuration && @room.owner.provider != @user_domain
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user