summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-09-14 16:20:33 -0300
committerGiovane <giovaneliberato@gmail.com>2015-09-14 16:20:33 -0300
commit394b39003c71650327d9816229fd16fcef80669c (patch)
tree4716e18ad8ab9f469a1a48eea8d39a81904f172b /service
parent36b16e824079120a06097f87b3b7c41ce4c242c9 (diff)
#442 Undo renaming of variable on features resource.
Diffstat (limited to 'service')
-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)