add profile option for edit history, visible only when edit history is disabled globally.

This commit is contained in:
Ben Lubar
2014-07-26 23:04:46 -05:00
parent 782773f774
commit 44dc4b4a17
7 changed files with 15 additions and 3 deletions

View File

@@ -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? &&