Skip to content

Commit 7011b63

Browse files
committed
Remove now unused authorizedWorkspace variable
1 parent 15c7436 commit 7011b63

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

api/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ async def catch_all(
200200
"""
201201
Catch-all route to proxy requests to the OSM service.
202202
"""
203-
authorizedWorkspace = None
204203

205204
if request.headers.get("X-Workspace") is not None:
206205
try:
@@ -216,8 +215,6 @@ async def catch_all(
216215
status_code=status.HTTP_403_FORBIDDEN,
217216
detail="You do not have access to this workspace",
218217
)
219-
220-
authorizedWorkspace = workspace_id
221218
else:
222219
if not any(p.fullmatch(request.url.path) for p in AUTH_WHITELIST_PATTERNS):
223220
raise HTTPException(

0 commit comments

Comments
 (0)