From 130f8a6964b76d3297f9766c8fbd610ccf8fc0d7 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Fri, 26 Oct 2018 16:25:39 +0200 Subject: [PATCH] debug-style: fixed views --- rhodecode/apps/debug_style/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rhodecode/apps/debug_style/__init__.py b/rhodecode/apps/debug_style/__init__.py index 3beca887..5ddf0892 100644 --- a/rhodecode/apps/debug_style/__init__.py +++ b/rhodecode/apps/debug_style/__init__.py @@ -31,7 +31,8 @@ class DebugStylePredicate(object): phash = text def __call__(self, info, request): - str2bool(request.registry.settings.get('debug_style')) + return str2bool(request.registry.settings.get('debug_style')) + def includeme(config): config.add_route_predicate(