Make action names to block and hide more clear
The `hide` action was calling the `block` method while the `soft_block` action was calling the `hide` method. Combined with the fact that we also have a `block` permission which is used in `ModerateActions` the logic was hard to follow.
This commit is contained in:
@@ -90,9 +90,6 @@ describe Abilities::Moderator do
|
||||
it { should_not be_able_to(:hide, user) }
|
||||
it { should be_able_to(:hide, other_user) }
|
||||
|
||||
it { should_not be_able_to(:soft_block, user) }
|
||||
it { should be_able_to(:soft_block, other_user) }
|
||||
|
||||
it { should_not be_able_to(:block, user) }
|
||||
it { should be_able_to(:block, other_user) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user