changes reasons order, :not_voting_allowed first
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user