forked from External/greenlight
		
	remove ability to change home room
This commit is contained in:
		@@ -90,14 +90,6 @@ class RoomsController < ApplicationController
 | 
				
			|||||||
    redirect_to @room
 | 
					    redirect_to @room
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # POST /:room_uid/home
 | 
					 | 
				
			||||||
  def home
 | 
					 | 
				
			||||||
    current_user.main_room = @room
 | 
					 | 
				
			||||||
    current_user.save
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    redirect_to @room
 | 
					 | 
				
			||||||
  end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # POST /:room_uid/:record_id
 | 
					  # POST /:room_uid/:record_id
 | 
				
			||||||
  def update_recording
 | 
					  def update_recording
 | 
				
			||||||
    meta = {
 | 
					    meta = {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,22 +22,21 @@
 | 
				
			|||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
        </td>
 | 
					        </td>
 | 
				
			||||||
        <td class="text-right">
 | 
					        <td class="text-right">
 | 
				
			||||||
 | 
					          <% if room != current_user.main_room %>
 | 
				
			||||||
            <div class="item-action dropdown">
 | 
					            <div class="item-action dropdown">
 | 
				
			||||||
              <a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fas fa-ellipsis-v"></i></a>
 | 
					              <a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fas fa-ellipsis-v"></i></a>
 | 
				
			||||||
              <div class="dropdown-menu dropdown-menu-right">
 | 
					              <div class="dropdown-menu dropdown-menu-right">
 | 
				
			||||||
 | 
					                <!--
 | 
				
			||||||
                <%= link_to room, class: "dropdown-item" do %>
 | 
					                <%= link_to room, class: "dropdown-item" do %>
 | 
				
			||||||
                  <i class="dropdown-icon fas fa-cog"></i> Room Settings
 | 
					                  <i class="dropdown-icon fas fa-cog"></i> Room Settings
 | 
				
			||||||
                <% end %>
 | 
					                <% end %>
 | 
				
			||||||
              <% if room != current_user.main_room %>
 | 
					                -->
 | 
				
			||||||
                <%= button_to make_home_path(room), class: "dropdown-item" do %>
 | 
					 | 
				
			||||||
                  <i class="dropdown-icon fas fa-home"></i> Make Home Room
 | 
					 | 
				
			||||||
                <% end %>
 | 
					 | 
				
			||||||
                <%= button_to room, method: :delete, data: { confirm: 'Are you sure?' }, class: "dropdown-item" do %>
 | 
					                <%= button_to room, method: :delete, data: { confirm: 'Are you sure?' }, class: "dropdown-item" do %>
 | 
				
			||||||
                  <i class="dropdown-icon far fa-trash-alt"></i> Delete
 | 
					                  <i class="dropdown-icon far fa-trash-alt"></i> Delete
 | 
				
			||||||
                <% end %>
 | 
					                <% end %>
 | 
				
			||||||
 | 
					              </div>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
          <% end %>
 | 
					          <% end %>
 | 
				
			||||||
            </div>
 | 
					 | 
				
			||||||
          </div>
 | 
					 | 
				
			||||||
        </td>
 | 
					        </td>
 | 
				
			||||||
      </tbody>
 | 
					      </tbody>
 | 
				
			||||||
    </table>
 | 
					    </table>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -36,7 +36,6 @@ Rails.application.routes.draw do
 | 
				
			|||||||
    post '/', to: 'rooms#join'
 | 
					    post '/', to: 'rooms#join'
 | 
				
			||||||
    post '/start', to: 'rooms#start', as: :start_room
 | 
					    post '/start', to: 'rooms#start', as: :start_room
 | 
				
			||||||
    get '/logout', to: 'rooms#logout', as: :logout_room
 | 
					    get '/logout', to: 'rooms#logout', as: :logout_room
 | 
				
			||||||
    post '/home', to: 'rooms#home', as: :make_home
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Mange recordings.
 | 
					    # Mange recordings.
 | 
				
			||||||
    scope '/:record_id' do
 | 
					    scope '/:record_id' do
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user