changes reasons order, :not_voting_allowed first

This commit is contained in:
Juanjo Bazán
2016-04-18 12:04:18 +02:00
parent fc0ea93cef
commit 11bcdf0211

View File

@@ -113,11 +113,11 @@ class SpendingProposal < ActiveRecord::Base
end
def reason_for_not_being_votable_by(user)
return :not_voting_allowed if Setting["feature.spending_proposal_features.voting_allowed"].blank?
return :not_logged_in unless user
return :not_verified unless user.can?(:vote, SpendingProposal)
return :unfeasible if unfeasible?
return :organization if user.organization?
return :not_voting_allowed if Setting["feature.spending_proposal_features.voting_allowed"].blank?
end
def votable_by?(user)