error pages and rec row

This commit is contained in:
Josh
2018-06-11 17:32:08 -04:00
parent 2b065eb7fa
commit 46bb456063
16 changed files with 117 additions and 40 deletions

View File

@ -90,6 +90,13 @@ class RoomsController < ApplicationController
redirect_to @room
end
# PATCH /r/:room_uid/:record_id
def update_recording
bbb.publish_recordings(params[:record_id], params[:publish])
end
# DELETE /r/:room_uid/:record_id
def delete_recording
@room.delete_recording(params[:record_id])

View File

@ -5,6 +5,9 @@ class UsersController < ApplicationController
# POST /users
def create
# Verify that GreenLight is configured to allow user signup.
return unless Rails.configuration.allow_user_signup
@user = User.new(user_params)
@user.provider = "greenlight"
@ -17,8 +20,12 @@ class UsersController < ApplicationController
end
# GET /signup
def new
@user = User.new
def new
if Rails.configuration.allow_user_signup
@user = User.new
else
redirect_to root_path
end
end
# GET /users/:user_uid/edit