From 34c9198d0cd324edb24c7be444a6e2e1b960e43d Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Fri, 5 May 2017 15:20:23 +0100 Subject: [PATCH] Make the service available to code on the request context --- app/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/__init__.py b/app/__init__.py index 8d8e18270..c5b509f30 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -40,6 +40,7 @@ performance_platform_client = PerformancePlatformClient() clients = Clients() api_user = LocalProxy(lambda: _request_ctx_stack.top.api_user) +authenticated_service = LocalProxy(lambda: _request_ctx_stack.top.authenticated_service) def create_app(app_name=None):