Some checks failed
CI / Unit & Component Tests (pull_request) Has been cancelled
CI / Backend Unit Tests (pull_request) Has been cancelled
CI / E2E Tests (pull_request) Has been cancelled
CI / Unit & Component Tests (push) Successful in 2m5s
CI / Backend Unit Tests (push) Successful in 2m0s
CI / E2E Tests (push) Failing after 21m36s
throw error(403) kept the URL at /documents/new (the error page renders in-place). Changed to throw redirect(303, '/') so the URL actually changes, matching the E2E test expectation that a read-only user is redirected away. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>