diff --git a/app/assets/javascripts/discourse/views/topic.js.es6 b/app/assets/javascripts/discourse/views/topic.js.es6 index cc2d6252a..89340de6c 100644 --- a/app/assets/javascripts/discourse/views/topic.js.es6 +++ b/app/assets/javascripts/discourse/views/topic.js.es6 @@ -119,7 +119,8 @@ const TopicView = Ember.View.extend(AddCategoryClass, AddArchetypeClass, Scrolli }, pmPath: function() { - return this.get('controller.currentUser').pmPath(this.get('topic')); + var currentUser = this.get('controller.currentUser'); + return currentUser && currentUser.pmPath(this.get('topic')); }.property(), browseMoreMessage: function() {