mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Trust level 4: add ability to edit any post and see edit history
This commit is contained in:
@ -178,6 +178,7 @@ class PostsController < ApplicationController
|
||||
|
||||
def revisions
|
||||
post_revision = find_post_revision_from_params
|
||||
guardian.ensure_can_see!(post_revision)
|
||||
post_revision_serializer = PostRevisionSerializer.new(post_revision, scope: guardian, root: false)
|
||||
render_json_dump(post_revision_serializer)
|
||||
end
|
||||
|
Reference in New Issue
Block a user