Merge branch 'proposal-notifications' of github.com:AyuntamientoMadrid/participacion into proposal-notifications
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user