From 59003bd9def73d0fb2e63d293eac28bc2fc36375 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 1 Jan 2018 16:23:41 -0600 Subject: [PATCH] require signin for page type customization --- app/controllers/customization_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/customization_controller.rb b/app/controllers/customization_controller.rb index c8106d64..4ff12eff 100644 --- a/app/controllers/customization_controller.rb +++ b/app/controllers/customization_controller.rb @@ -2,6 +2,8 @@ class CustomizationController < ApplicationController before_action :verify_content_type_can_be_toggled, only: [:toggle_content_type] def content_types + return redirect_to root_path unless user_signed_in? + @all_content_types = Rails.application.config.content_types[:all] @premium_content_types = Rails.application.config.content_types[:premium] @my_activators = current_user.user_content_type_activators.pluck(:content_type)