Require users to be logged in to do anything other than show public content

This commit is contained in:
Andrew Brown 2016-08-18 18:12:20 -05:00
parent 7e3e6a329d
commit a5dfe24481

View File

@ -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