Allow users to delete their own comments

This commit is contained in:
Julian Herrero
2020-09-24 11:53:48 +07:00
committed by Javi Martín
parent fa14976cfd
commit 0698c0ff4f
12 changed files with 100 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ describe Abilities::Moderator do
it { should be_able_to(:hide, comment) }
it { should be_able_to(:hide_in_moderation_screen, comment) }
it { should_not be_able_to(:hide, hidden_comment) }
it { should_not be_able_to(:hide, own_comment) }
it { should be_able_to(:hide, own_comment) }
it { should be_able_to(:moderate, comment) }
it { should_not be_able_to(:moderate, own_comment) }