mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 15:17:14 +08:00
more protection
This commit is contained in:
parent
835bedca67
commit
e9c1f8171c
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user