From 11bcdf02110801159e15fc2a883df03a6f94a3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Mon, 18 Apr 2016 12:04:18 +0200 Subject: [PATCH] changes reasons order, :not_voting_allowed first --- app/models/spending_proposal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spending_proposal.rb b/app/models/spending_proposal.rb index 7a3dda7c6..d8ae2acf0 100644 --- a/app/models/spending_proposal.rb +++ b/app/models/spending_proposal.rb @@ -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)