allows only admins to delete spending proposals
This commit is contained in:
@@ -37,7 +37,7 @@ module Abilities
|
||||
|
||||
can :manage, Annotation
|
||||
|
||||
can [:read, :update], SpendingProposal
|
||||
can [:read, :update, :destroy], SpendingProposal
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user