mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 12:27:16 +08:00
DEV: Only allow expanding hidden posts for author and staff (#21052)
This commit is contained in:
@ -1992,7 +1992,7 @@ RSpec.describe PostsController do
|
||||
it "throws an exception for users" do
|
||||
sign_in(user)
|
||||
get "/posts/#{post.id}/revisions/#{post_revision.number}.json"
|
||||
expect(response.status).to eq(404)
|
||||
expect(response.status).to eq(403)
|
||||
end
|
||||
|
||||
it "works for admins" do
|
||||
|
Reference in New Issue
Block a user