forked from External/greenlight
sessions and fixes
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
class RoomsController < ApplicationController
|
||||
|
||||
before_action :find_room, :verify_room_ownership
|
||||
skip_before_action :verify_room_ownership, only: [:index, :join, :wait]
|
||||
skip_before_action :verify_room_ownership, only: [:show, :join, :wait]
|
||||
|
||||
# GET /r/:room_uid
|
||||
def index
|
||||
@ -82,6 +82,10 @@ class RoomsController < ApplicationController
|
||||
redirect_to room_path(@room.uid)
|
||||
end
|
||||
|
||||
# GET /r/:room_uid/sessions
|
||||
def sessions
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# Find the room from the uid.
|
||||
@ -111,4 +115,4 @@ class RoomsController < ApplicationController
|
||||
redirect_to root_path
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user