diff --git a/roles/web-app-baserow/templates/playwright.env.j2 b/roles/web-app-baserow/templates/playwright.env.j2 index d468b1d3ed..4dee899ca3 100644 --- a/roles/web-app-baserow/templates/playwright.env.j2 +++ b/roles/web-app-baserow/templates/playwright.env.j2 @@ -27,7 +27,8 @@ NODE_TLS_REJECT_UNAUTHORIZED=0 OIDC_ISSUER_URL={{ OIDC.CLIENT.ISSUER_URL | dotenv_quote }} -PERSONA_ADMINISTRATOR_BLOCKED=false +# Baserow admin is SSO-gated; with SSO off there is no native frontend admin (first run forces /signup), so block the persona. +PERSONA_ADMINISTRATOR_BLOCKED={{ 'false' if (lookup('config', application_id, 'services.sso.enabled') | bool) else 'true' }} # Baserow is admin-RBAC gated here; non-admin persona access stops at oauth2-proxy. PERSONA_BIBER_BLOCKED=true