mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-29 15:35:23 -04:00
more protection
This commit is contained in:
parent
835bedca67
commit
e9c1f8171c
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,8 @@ const TopicView = Ember.View.extend(AddCategoryClass, AddArchetypeClass, Scrolli
|
||||||
},
|
},
|
||||||
|
|
||||||
pmPath: function() {
|
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(),
|
}.property(),
|
||||||
|
|
||||||
browseMoreMessage: function() {
|
browseMoreMessage: function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue