adds abilities for SpendingProposals

This commit is contained in:
Juanjo Bazán
2015-12-30 14:18:44 +01:00
committed by Juanjo Bazán
parent fe32162c9f
commit 2c36ceb10c
6 changed files with 12 additions and 4 deletions

View File

@@ -17,9 +17,12 @@ module Abilities
proposal.editable_by?(user)
end
can :read, SpendingProposal
can :create, Comment
can :create, Debate
can :create, Proposal
can :create, SpendingProposal
can [:flag, :unflag], Comment
cannot [:flag, :unflag], Comment, user_id: user.id