FIX: 🈂️ Allow closing polls in multi-locale sites

This commit is contained in:
riking
2015-02-05 19:38:51 -08:00
parent 1ec46e3efd
commit 06f02ce9fc
7 changed files with 25 additions and 24 deletions

View File

@ -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: {