feat(SEC-001): protect workspace bootstrap with turnstile
This commit is contained in:
@@ -70,8 +70,7 @@ def legacy_hedge_page(request: Request):
|
||||
def workspace_hedge_page(workspace_id: str) -> None:
|
||||
repo = get_workspace_repository()
|
||||
if not repo.workspace_exists(workspace_id):
|
||||
render_workspace_recovery()
|
||||
return
|
||||
return RedirectResponse(url="/", status_code=307)
|
||||
_render_hedge_page(workspace_id=workspace_id)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user