Skip to content

Commit

Permalink
Fixing expression
Browse files Browse the repository at this point in the history
  • Loading branch information
manya committed Mar 31, 2009
1 parent b7c42fd commit 1e1117f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/poll_helper.rb
Expand Up @@ -24,7 +24,7 @@ def poll(name, opthash)
#poll exists confirmed
#Now, check user existance
unless user.blank? && poll.target == TARGET_LOGGED_USER
logged_user_has_voted = false || user_has_voted_poll?(poll.name, user, target_type, target_id) unless user.blank?
logged_user_has_voted = user_has_voted_poll?(poll.name, user, target_type, target_id) unless user.blank?
#Ask if the conditions are met to show the poll
if user_can_see_poll?(poll, user)
cookie_voted = (already_cookie == ["1"] and !opthash[:allow_multiple])
Expand Down

0 comments on commit 1e1117f

Please sign in to comment.