mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 10:24:42 +08:00
FIX: Hide the post history for TL4 (#10065)
This commit is contained in:
@ -890,12 +890,9 @@ describe Guardian do
|
||||
expect(Guardian.new(moderator).can_see?(post_revision)).to be_truthy
|
||||
end
|
||||
|
||||
it 'is true for trust level 4' do
|
||||
expect(Guardian.new(trust_level_4).can_see?(post_revision)).to be_truthy
|
||||
end
|
||||
|
||||
it 'is false for trust level lower than 4' do
|
||||
it 'is false for trust level equal or lower than 4' do
|
||||
expect(Guardian.new(trust_level_3).can_see?(post_revision)).to be_falsey
|
||||
expect(Guardian.new(trust_level_4).can_see?(post_revision)).to be_falsey
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user