Should be able to see edits to your own posts

This commit is contained in:
Neil Lalonde 2013-11-08 10:18:41 -05:00
parent 98a91b80aa
commit 630ef0f322
1 changed files with 3 additions and 1 deletions

View File

@ -361,7 +361,9 @@ Discourse.Post = Discourse.Model.extend({
}.property('reply_count'), }.property('reply_count'),
canViewEditHistory: function() { 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() }.property()
}); });