summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-09-14 16:06:35 -0300
committerGiovane <giovaneliberato@gmail.com>2015-09-14 16:06:35 -0300
commit36b16e824079120a06097f87b3b7c41ce4c242c9 (patch)
tree766be94bce9a709d5e5023fa36d3b12b0ab80468
parentb952474c48287a44b376f0f4bcba5e74224ce188 (diff)
#442 Rename forgotten attribute on features resources.
-rw-r--r--service/pixelated/resources/features_resource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/resources/features_resource.py b/service/pixelated/resources/features_resource.py
index 0770d867..7b2e6490 100644
--- a/service/pixelated/resources/features_resource.py
+++ b/service/pixelated/resources/features_resource.py
@@ -26,8 +26,8 @@ class FeaturesResource(Resource):
disabled_features = ['draftReply']
dispatcher_features = {'logout': os.environ.get('DISPATCHER_LOGOUT_URL')}
- if not os.environ.get('FEEDBACK_ENABLE'):
- self.DISABLED_FEATURES.append('feedback')
+ if os.environ.get('FEEDBACK_ENABLE') is None:
+ disabled_features.append('feedback')
return respond_json(
{'disabled_features': disabled_features, 'dispatcher_features': dispatcher_features}, request)