diff options
author | francis <francis> | 2007-10-08 15:16:22 +0000 |
---|---|---|
committer | francis <francis> | 2007-10-08 15:16:22 +0000 |
commit | c3cf62e41b22605555df3cb5bbdcf64a331cff23 (patch) | |
tree | 9074d1d61f93e01070d2abd6bc6e5ebe4a75272a /app/controllers/application.rb | |
parent | 178002c0585d127c0286c9557b727d9c91ef92bf (diff) |
Actually store user id when making request.
/list URL displays all requests that are in progress.
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 |