mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
FEATURE: ability to hide or show specific post revisions
This commit is contained in:
@ -157,6 +157,14 @@ module PostGuardian
|
||||
can_see_post?(post)
|
||||
end
|
||||
|
||||
def can_hide_post_revision?(post_revision)
|
||||
is_staff?
|
||||
end
|
||||
|
||||
def can_show_post_revision?(post_revision)
|
||||
is_staff?
|
||||
end
|
||||
|
||||
def can_vote?(post, opts={})
|
||||
post_can_act?(post,:vote, opts)
|
||||
end
|
||||
|
Reference in New Issue
Block a user