mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
require signin for page type customization
This commit is contained in:
parent
6bde22a3a2
commit
59003bd9de
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user