diff options
| author | Teddy Wing | 2012-05-30 20:39:36 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2012-05-30 20:39:36 -0400 | 
| commit | 21d5ee288e356f7ec9cc2ad45128c6b8073fdc05 (patch) | |
| tree | 1a0d4b12f2910d3f7a43bd422560f535dafd5ce7 | |
| parent | fb801ab393a47cdc1bae3af063845f52dbdd258a (diff) | |
| download | inboxes-21d5ee288e356f7ec9cc2ad45128c6b8073fdc05.tar.bz2 | |
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.
| -rw-r--r-- | app/controllers/inboxes/discussions_controller.rb | 1 | 
1 files changed, 1 insertions, 0 deletions
| 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] | 
