Redirect to root path if splash is not public
This commit is contained in:
parent
4955b2b7b8
commit
23c68211f0
2 changed files with 22 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
|||
class ConferenceController < ApplicationController
|
||||
def show
|
||||
@conference = Conference.find_by_short_title(params[:id])
|
||||
not_found unless @conference.make_conference_public?
|
||||
redirect_to root_path, notice: "Conference not ready yet!!" unless @conference.make_conference_public?
|
||||
end
|
||||
|
||||
def gallery_photos
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue