mirror of
https://github.com/discourse/discourse.git
synced 2025-03-29 03:17:55 +08:00
BUGFIX: bust for anon
This commit is contained in:
parent
8cdf25532c
commit
4c82386f80
@ -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…
x
Reference in New Issue
Block a user