updates permissions for direct messages

This commit is contained in:
rgarcia
2016-06-09 17:35:19 +02:00
parent 900d997000
commit fea3aef5bb
4 changed files with 26 additions and 1 deletions

View File

@@ -46,6 +46,8 @@ module Abilities
can :vote_featured, Proposal
can :vote, SpendingProposal
can :create, SpendingProposal
can :create, DirectMessage
can :show, DirectMessage, sender_id: user.id
end
can [:new, :create, :show], ProposalNotification do |notification|