diff options
-rw-r--r-- | service/pixelated/resources/features_resource.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/service/pixelated/resources/features_resource.py b/service/pixelated/resources/features_resource.py index e11653a9..1c19338e 100644 --- a/service/pixelated/resources/features_resource.py +++ b/service/pixelated/resources/features_resource.py @@ -24,9 +24,12 @@ class FeaturesResource(Resource): isLeaf = True def render_GET(self, request): - dispatcher_features = {'logout': os.environ.get('DISPATCHER_LOGOUT_URL')} + dispatcher_features = {} - if os.environ.get('FEEDBACK_ENABLE') is None: + if os.environ.get('DISPATCHER_LOGOUT_URL'): + dispatcher_features['logout'] = os.environ.get('DISPATCHER_LOGOUT_URL') + + if os.environ.get('FEEDBACK_ENABLED') is None: self.DISABLED_FEATURES.append('feedback') return respond_json( |