From 081055ce37a2dc2f2e4c1bd97b5ffe43d363de33 Mon Sep 17 00:00:00 2001 From: Matthew Fortunka Date: Wed, 19 Feb 2025 09:56:32 +0000 Subject: [PATCH] Removed extra method --- api_app/api/routes/api.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/api_app/api/routes/api.py b/api_app/api/routes/api.py index 08bee6ca3..1be335e13 100644 --- a/api_app/api/routes/api.py +++ b/api_app/api/routes/api.py @@ -12,11 +12,6 @@ from core import config from resources import strings - -def _is_user_management_enabled(): - return config.USER_MANAGEMENT_ENABLED - - core_tags_metadata = [ {"name": "health", "description": "Verify that the TRE is up and running"}, {"name": "workspace templates", "description": "**TRE admin** registers and can access templates"}, @@ -56,7 +51,7 @@ def _is_user_management_enabled(): core_router.include_router(costs.costs_workspace_router, tags=["costs"]) core_router.include_router(requests.router, tags=["requests"]) -if _is_user_management_enabled(): +if config.USER_MANAGEMENT_ENABLED: core_router.include_router(workspace_users.workspaces_users_admin_router, tags=["users"]) core_router.include_router(workspace_users.workspaces_users_shared_router, tags=["users"])