X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/3e545735b4784af19edec9bfcc8e25ff17cb7f12..d9eb811be03c5354431b652c166815b3d4af4d6a:/app/controllers/quickvote_controller.rb?ds=sidebyside diff --git a/app/controllers/quickvote_controller.rb b/app/controllers/quickvote_controller.rb index 7ad1722..cd63c2e 100644 --- a/app/controllers/quickvote_controller.rb +++ b/app/controllers/quickvote_controller.rb @@ -17,6 +17,8 @@ class QuickvoteController < ApplicationController @quickvote.description=@quickvote.description #record who created the quickvote so that person can monitor it easily @quickvote.quickuser = session.session_id + #Give registered users additional QuickVote functionality + @quickvote.user_id = session[:user][:id] if session[:user] # try to save, if it fails, show the page again (the flash should # still be intact if @quickvote.save