Adds a new reason for not being ballotable

This commit is contained in:
kikito
2016-12-25 12:55:03 +01:00
parent e15377b7d8
commit 53233c365a

View File

@@ -149,6 +149,7 @@ class Budget
def reason_for_not_being_ballotable_by(user, ballot)
return permission_problem(user) if permission_problem?(user)
return :not_selected unless selected?
return :no_ballots_allowed unless budget.balloting?
return :different_heading_assigned unless ballot.valid_heading?(heading)
return :not_enough_money if ballot.present? && !enough_money?(ballot)