summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavaL <mnandri@thoughtworks.com>2015-12-21 16:55:41 +0100
committerNavaL <mnandri@thoughtworks.com>2015-12-21 16:55:41 +0100
commit96ac1ed223a144319c3a3d5725c2551b97b1b918 (patch)
tree393ae92530c64df65687c25e0a41cfb8e253adad
parent43bee729d1247bf94b00a273b84d6fee6bee1d7b (diff)
restoring default disabled features --fixing ft
Issue #548
-rw-r--r--service/pixelated/resources/features_resource.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/pixelated/resources/features_resource.py b/service/pixelated/resources/features_resource.py
index 2c1d5b1b..fe79082b 100644
--- a/service/pixelated/resources/features_resource.py
+++ b/service/pixelated/resources/features_resource.py
@@ -20,6 +20,7 @@ from twisted.web.resource import Resource
class FeaturesResource(Resource):
+ DISABLED_FEATURES = ['draftReply']
isLeaf = True
def render_GET(self, request):
@@ -33,7 +34,7 @@ class FeaturesResource(Resource):
{'disabled_features': disabled_features, 'dispatcher_features': dispatcher_features}, request)
def _disabled_features(self):
- disabled_features = ['draftReply']
+ disabled_features = [default_disabled_feature for default_disabled_feature in self.DISABLED_FEATURES]
if os.environ.get('FEEDBACK_URL') is None:
disabled_features.append('feedback')
if 'ATTACHMENT' not in os.environ: