Skip to content

Commit

Permalink
add option to splashpage for it to be shown by default when viewing t…
Browse files Browse the repository at this point in the history
…he conferences index
  • Loading branch information
shanet committed May 8, 2016
1 parent 2e65971 commit 0bd4d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/conference_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def index
@antiquated = @conferences - @current

# If one of the current conferences is set to be shown by default, redirect to it
default_splashpage = Splashpage.find_by show_by_default: true
default_splashpage = Splashpage.find_by show_by_default: true, public: true
return unless default_splashpage

redirect_to conference_path(default_splashpage.conference.short_title)
Expand Down

0 comments on commit 0bd4d42

Please sign in to comment.