Allow users to delete their own comments
This commit is contained in:
committed by
Javi Martín
parent
fa14976cfd
commit
0698c0ff4f
@@ -49,6 +49,8 @@ module Abilities
|
||||
can [:create, :created], Proposal
|
||||
can :create, Legislation::Proposal
|
||||
|
||||
can :hide, Comment, user_id: user.id
|
||||
|
||||
can :suggest, Debate
|
||||
can :suggest, Proposal
|
||||
can :suggest, Legislation::Proposal
|
||||
|
||||
@@ -12,7 +12,6 @@ module Abilities
|
||||
can :read, Comment
|
||||
|
||||
can :hide, Comment, hidden_at: nil
|
||||
cannot :hide, Comment, user_id: user.id
|
||||
|
||||
can :ignore_flag, Comment, ignored_flag_at: nil, hidden_at: nil
|
||||
cannot :ignore_flag, Comment, user_id: user.id
|
||||
|
||||
Reference in New Issue
Block a user