mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:32:42 +08:00
FIX: 🈂️ Allow closing polls in multi-locale sites
This commit is contained in:
@ -5,7 +5,7 @@ export default DiscourseController.extend({
|
||||
showResults: Em.computed.oneWay('poll.closed'),
|
||||
disableRadio: Em.computed.any('poll.closed', 'loading'),
|
||||
showToggleClosePoll: function() {
|
||||
return this.get('poll.post.topic.details.can_edit') && !Discourse.SiteSettings.allow_user_locale;
|
||||
return this.get('poll.post.topic.details.can_edit');
|
||||
}.property('poll.post.topic.details.can_edit'),
|
||||
|
||||
actions: {
|
||||
|
Reference in New Issue
Block a user