diff options
Diffstat (limited to 'app/controllers/application.rb')
-rw-r--r-- | app/controllers/application.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/application.rb b/app/controllers/application.rb index a230262cd..f681b46c8 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: application.rb,v 1.9 2007-10-03 20:01:45 louise Exp $ +# $Id: application.rb,v 1.10 2007-10-08 15:16:22 francis Exp $ class ApplicationController < ActionController::Base @@ -82,6 +82,11 @@ class ApplicationController < ActionController::Base return true end + # Return logged in user + def authenticated_user + return User.find(session[:user]) + end + # For redirects to POST requests before_filter :post_redirect def post_redirect |