adds ability to level 2 users to delete owned sps

This commit is contained in:
Juanjo Bazán
2016-03-14 12:51:58 +01:00
parent 0b1b4384ee
commit 142c981cdf
2 changed files with 9 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ module Abilities
can :suggest, Debate
can :suggest, Proposal
can [:flag, :unflag], Comment
cannot [:flag, :unflag], Comment, user_id: user.id
@@ -44,6 +44,7 @@ module Abilities
can :vote, Proposal
can :vote_featured, Proposal
can :create, SpendingProposal
can :destroy, SpendingProposal, author_id: user.id
end
can :create, Annotation