mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
add profile option for edit history, visible only when edit history is disabled globally.
This commit is contained in:
@@ -137,7 +137,7 @@ module PostGuardian
|
||||
return false unless post
|
||||
|
||||
if !post.hidden
|
||||
return true if post.wiki || SiteSetting.edit_history_visible_to_public
|
||||
return true if post.wiki || SiteSetting.edit_history_visible_to_public || post.user.edit_history_public
|
||||
end
|
||||
|
||||
authenticated? &&
|
||||
|
||||
Reference in New Issue
Block a user