mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-24 05:42:03 -04:00
BUGFIX: bust for anon
This commit is contained in:
parent
8cdf25532c
commit
4c82386f80
1 changed files with 1 additions and 1 deletions
|
@ -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'),
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue