From 630ef0f322f6ace6f9a9bf91615b3ae2973a53a6 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 8 Nov 2013 10:18:41 -0500 Subject: [PATCH] Should be able to see edits to your own posts --- app/assets/javascripts/discourse/models/post.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/models/post.js b/app/assets/javascripts/discourse/models/post.js index 7cae814f962..a336dfb478c 100644 --- a/app/assets/javascripts/discourse/models/post.js +++ b/app/assets/javascripts/discourse/models/post.js @@ -361,7 +361,9 @@ Discourse.Post = Discourse.Model.extend({ }.property('reply_count'), canViewEditHistory: function() { - return (Discourse.SiteSettings.edit_history_visible_to_public || (Discourse.User.current() && Discourse.User.current().get('staff'))); + return (Discourse.SiteSettings.edit_history_visible_to_public || + (Discourse.User.current() && + (Discourse.User.current().get('staff') || Discourse.User.current().get('id') === this.get('user_id')))); }.property() });