From 21d5ee288e356f7ec9cc2ad45128c6b8073fdc05 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 30 May 2012 20:39:36 -0400 Subject: DiscussionsController: added a before_filter to authenticate the user for any actions so that users get a login page instead of a 500 error AccessDenied. Now they can log in and get access if they have it. --- app/controllers/inboxes/discussions_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/inboxes/discussions_controller.rb b/app/controllers/inboxes/discussions_controller.rb index 13dae3d..150d960 100644 --- a/app/controllers/inboxes/discussions_controller.rb +++ b/app/controllers/inboxes/discussions_controller.rb @@ -1,4 +1,5 @@ class Inboxes::DiscussionsController < Inboxes::BaseController + before_filter :authenticate_user! load_and_authorize_resource before_filter :load_and_check_discussion_recipient, :only => [:create, :new] -- cgit v1.2.3