Skip to content

Commit

Permalink
GRN2-283: Fixed bug where users can't join a shared room (Fixed bigbl…
Browse files Browse the repository at this point in the history
…uebutton#989) (bigbluebutton#995)

* GRN2-283: Fixed bug where users can't join a shared room

* GRN2-283: Fixed bug where users can't join a shared room

* GRN2-283: Fixed bug where users can't join a shared room

Co-authored-by: Ahmad Farhat <[email protected]>
  • Loading branch information
etiennevvv and farhatahmad authored Mar 18, 2020
1 parent e670260 commit 84fb615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/rooms_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def join
return redirect_to root_path,
flash: { alert: I18n.t("administrator.site_settings.authentication.user-info") } if auth_required

unless @room.owned_by?(current_user)
unless @room.owned_by?(current_user) || room_shared_with_user
# Don't allow users to join unless they have a valid access code or the room doesn't have an access code
if @room.access_code && !@room.access_code.empty? && @room.access_code != session[:access_code]
return redirect_to room_path(room_uid: params[:room_uid]), flash: { alert: I18n.t("room.access_code_required") }
Expand Down

0 comments on commit 84fb615

Please sign in to comment.