Merge branch 'proposal-notifications' of github.com:AyuntamientoMadrid/participacion into proposal-notifications

This commit is contained in:
rgarcia
2016-06-15 16:47:08 +02:00

View File

@@ -50,9 +50,7 @@ module Abilities
can :show, DirectMessage, sender_id: user.id
end
can [:new, :create, :show], ProposalNotification do |notification|
notification.proposal.author_id == user.id
end
can [:create, :show], ProposalNotification, proposal: { author_id: user.id }
can :create, Annotation
can [:update, :destroy], Annotation, user_id: user.id