BUGFIX: bust for anon

This commit is contained in:
Sam 2014-04-09 11:24:33 +10:00
parent 8cdf25532c
commit 4c82386f80

View file

@ -266,7 +266,7 @@ Discourse.TopicController = Discourse.ObjectController.extend(Discourse.Selected
}.property('selectedPostsCount'),
canChangeOwner: function() {
if (!Discourse.User.current().admin) return false;
if (!Discourse.User.current() || !Discourse.User.current().admin) return false;
return !!this.get('selectedPostsUsername');
}.property('selectedPostsUsername'),