Skip to content

Commit

Permalink
Removed extra method
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fortunka committed Feb 19, 2025
1 parent 44351e4 commit 081055c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions api_app/api/routes/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down Expand Up @@ -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"])

Expand Down

0 comments on commit 081055c

Please sign in to comment.