diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index 70cc1e463..d1769a925 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -1,7 +1,6 @@ # MainController class MainController < ApplicationController - skip_before_action :authenticate_user!, only: [:home, :about, :news, - :sponsors] + before_action :check_for_consent authorize_resource class: false, only: :start layout 'application_no_sidebar' diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 34fce2320..fec436f11 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -9,13 +9,16 @@ <%= render partial: 'shared/navbar' %>