summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/pixelated/resources/features_resource.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/pixelated/resources/features_resource.py b/service/pixelated/resources/features_resource.py
index 7b2e6490..e11653a9 100644
--- a/service/pixelated/resources/features_resource.py
+++ b/service/pixelated/resources/features_resource.py
@@ -20,14 +20,14 @@ from twisted.web.resource import Resource
class FeaturesResource(Resource):
+ DISABLED_FEATURES = ['draftReply']
isLeaf = True
def render_GET(self, request):
- disabled_features = ['draftReply']
dispatcher_features = {'logout': os.environ.get('DISPATCHER_LOGOUT_URL')}
if os.environ.get('FEEDBACK_ENABLE') is None:
- disabled_features.append('feedback')
+ self.DISABLED_FEATURES.append('feedback')
return respond_json(
- {'disabled_features': disabled_features, 'dispatcher_features': dispatcher_features}, request)
+ {'disabled_features': self.DISABLED_FEATURES, 'dispatcher_features': dispatcher_features}, request)