From a5dfe2448100b58636ffdf009881bbab6380d116 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Thu, 18 Aug 2016 18:12:20 -0500 Subject: [PATCH] Require users to be logged in to do anything other than show public content --- app/controllers/content_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb index 70310406..6379fa5e 100644 --- a/app/controllers/content_controller.rb +++ b/app/controllers/content_controller.rb @@ -1,6 +1,7 @@ class ContentController < ApplicationController include HasOwnership + before_action :authenticate_user!, only: [:new, :create, :edit, :update, :destroy] # TODO: put a lot of this in ContentManagementService