Merge branch 'master' of github.com:blindsidenetworks/greenlight

This commit is contained in:
jfederico
2016-10-18 16:26:02 -04:00
13 changed files with 96 additions and 35 deletions

View File

@ -16,4 +16,16 @@ class LandingController < ApplicationController
end
end
def room
@room_name = params[:name]
@user = User.find_by(username: @room_name)
if @user.nil?
redirect_to root_path
end
end
def admin?
@user == current_user
end
helper_method :admin?
end