allows only admins to delete spending proposals

This commit is contained in:
rgarcia
2016-03-29 17:08:31 +02:00
parent d97ebf4104
commit 6f723a871f
2 changed files with 1 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ module Abilities
can :manage, Annotation
can [:read, :update], SpendingProposal
can [:read, :update, :destroy], SpendingProposal
end
end
end

View File

@@ -44,7 +44,6 @@ module Abilities
can :vote, Proposal
can :vote_featured, Proposal
can :create, SpendingProposal
can :destroy, SpendingProposal, author_id: user.id
end
can :create, Annotation