diff --git a/app/assets/javascripts/discourse/models/_post.js b/app/assets/javascripts/discourse/models/_post.js index 9e865ea1892..d79c7d5a567 100644 --- a/app/assets/javascripts/discourse/models/_post.js +++ b/app/assets/javascripts/discourse/models/_post.js @@ -65,8 +65,8 @@ Discourse.Post = Discourse.Model.extend({ postElementId: Discourse.computed.fmt('post_number', 'post_%@'), canViewRawEmail: function() { - return Discourse.User.currentProp('staff'); - }.property(), + return this.get("user_id") === Discourse.User.currentProp("id") || Discourse.User.currentProp('staff'); + }.property("user_id"), bookmarkedChanged: function() { Discourse.Post.bookmark(this.get('id'), this.get('bookmarked')) diff --git a/app/assets/javascripts/discourse/templates/post.hbs b/app/assets/javascripts/discourse/templates/post.hbs index 9fc639251fd..3c2689c6ab6 100644 --- a/app/assets/javascripts/discourse/templates/post.hbs +++ b/app/assets/javascripts/discourse/templates/post.hbs @@ -50,16 +50,16 @@ {{/if}} {{#if wiki}} -