Terms of service (terms) next to legal notice and privacy policy, edited in Admin → legal documents, linked in the console footer. Platform only: organizations keep imprint/privacy for their status pages, and status pages never show terms.
Consent
Migration 00046: legal_documents.version (from a sequence, never reused), legal_acceptances (user, kind, version, accepted_at) with RLS.
Sign-up and invitation sign-up require the box I have read and accept the privacy policy and the terms of service for the versions shown (consent, consent_versions); 422 consent_required, 409 consent_outdated if a document changed meanwhile. Only when the platform has those documents.
Admin saves with "Everyone has to accept it again" → new version; without it (corrections) nobody is asked.
accountGate middleware: a signed-in account missing an acceptance — e.g. just signed up through Google/GitHub/OIDC or after a new version — is redirected to /consent?next=…; API calls get 403 consent_required. POST /api/v1/consent records the acceptance (audited as account.consent, local next only).
Acceptances are in the GDPR export (consents).
Suspended accounts can sign in again (password, TOTP, platform or org SSO) but land on /account/suspended: the reason, data export and account deletion, sign-out. Everything else → 403 account_suspended. API tokens stay blocked.
Always allowed while restricted: reading /legal/*, /api/v1/me/export, /api/v1/me/delete, auth endpoints, locale — and for admins the legal editor, so publishing privacy and terms one after the other does not lock them out.
Account deletion: organizations the account owns (exactly one owner per organization, enforced by memberships_one_owner_idx) are deleted with it — monitors, status pages, everything — even with other members; the former 409 owns_shared_orgs is gone (also for admin deletion). The security page, consent page and suspension page list those organizations before the delete button.
Tests: new TestConsent (box required, outdated versions, recorded acceptances, existing accounts gated with readable documents and export, outdated/foreign next, correction vs. new version, only the changed document listed, SSO sign-up lands on consent then /orgs/new) and TestSuspendedAccount (token 401, sign-in, redirect, reason, API 403, export, self-deletion takes org and monitors). Updated delete/moderation/legal tests; test helpers tick the box like a user. Full suite and lint green. Dev env on :8080 migrated and restarted.
**Terms of service** (`terms`) next to legal notice and privacy policy, edited in Admin → legal documents, linked in the console footer. Platform only: organizations keep imprint/privacy for their status pages, and status pages never show terms.
**Consent**
- Migration 00046: `legal_documents.version` (from a sequence, never reused), `legal_acceptances (user, kind, version, accepted_at)` with RLS.
- Sign-up and invitation sign-up require the box *I have read and accept the privacy policy and the terms of service* for the versions shown (`consent`, `consent_versions`); `422 consent_required`, `409 consent_outdated` if a document changed meanwhile. Only when the platform has those documents.
- Admin saves with **"Everyone has to accept it again"** → new version; without it (corrections) nobody is asked.
- `accountGate` middleware: a signed-in account missing an acceptance — e.g. just signed up through Google/GitHub/OIDC or after a new version — is redirected to `/consent?next=…`; API calls get `403 consent_required`. `POST /api/v1/consent` records the acceptance (audited as `account.consent`, local `next` only).
- Acceptances are in the GDPR export (`consents`).
**Suspended accounts** can sign in again (password, TOTP, platform or org SSO) but land on `/account/suspended`: the reason, data export and account deletion, sign-out. Everything else → `403 account_suspended`. API tokens stay blocked.
**Always allowed** while restricted: reading `/legal/*`, `/api/v1/me/export`, `/api/v1/me/delete`, auth endpoints, locale — and for admins the legal editor, so publishing privacy and terms one after the other does not lock them out.
**Account deletion**: organizations the account owns (exactly one owner per organization, enforced by `memberships_one_owner_idx`) are deleted with it — monitors, status pages, everything — even with other members; the former `409 owns_shared_orgs` is gone (also for admin deletion). The security page, consent page and suspension page list those organizations before the delete button.
**Tests**: new `TestConsent` (box required, outdated versions, recorded acceptances, existing accounts gated with readable documents and export, outdated/foreign `next`, correction vs. new version, only the changed document listed, SSO sign-up lands on consent then `/orgs/new`) and `TestSuspendedAccount` (token 401, sign-in, redirect, reason, API 403, export, self-deletion takes org and monitors). Updated delete/moderation/legal tests; test helpers tick the box like a user. Full suite and lint green. Dev env on :8080 migrated and restarted.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Terms of service join the legal notice and privacy policy, for the
platform only. Every account accepts the platform's privacy policy and
terms: on sign-up (also through an invitation) by ticking a box for the
versions shown, and after a sign-in through a provider right away. When
an admin saves a material change with "everyone has to accept again",
the document gets a new version and each account is asked at its next
request; corrections ask nobody. Acceptances are kept per version with
their time, as proof, and are part of the data export.
Until an account accepted, and while it is suspended, it can read the
documents, export its data, delete itself and sign out, nothing else:
pages lead to /consent or /account/suspended, other API calls answer 403
consent_required or account_suspended. Suspended accounts therefore sign
in again, by password or provider; their API tokens stay blocked.
Deleting an account deletes the organizations it owns, monitors and all,
also when they have other members (each organization has one owner); it
no longer refuses. The account settings name those organizations first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Terms of service (
terms) next to legal notice and privacy policy, edited in Admin → legal documents, linked in the console footer. Platform only: organizations keep imprint/privacy for their status pages, and status pages never show terms.Consent
legal_documents.version(from a sequence, never reused),legal_acceptances (user, kind, version, accepted_at)with RLS.consent,consent_versions);422 consent_required,409 consent_outdatedif a document changed meanwhile. Only when the platform has those documents.accountGatemiddleware: a signed-in account missing an acceptance — e.g. just signed up through Google/GitHub/OIDC or after a new version — is redirected to/consent?next=…; API calls get403 consent_required.POST /api/v1/consentrecords the acceptance (audited asaccount.consent, localnextonly).consents).Suspended accounts can sign in again (password, TOTP, platform or org SSO) but land on
/account/suspended: the reason, data export and account deletion, sign-out. Everything else →403 account_suspended. API tokens stay blocked.Always allowed while restricted: reading
/legal/*,/api/v1/me/export,/api/v1/me/delete, auth endpoints, locale — and for admins the legal editor, so publishing privacy and terms one after the other does not lock them out.Account deletion: organizations the account owns (exactly one owner per organization, enforced by
memberships_one_owner_idx) are deleted with it — monitors, status pages, everything — even with other members; the former409 owns_shared_orgsis gone (also for admin deletion). The security page, consent page and suspension page list those organizations before the delete button.Tests: new
TestConsent(box required, outdated versions, recorded acceptances, existing accounts gated with readable documents and export, outdated/foreignnext, correction vs. new version, only the changed document listed, SSO sign-up lands on consent then/orgs/new) andTestSuspendedAccount(token 401, sign-in, redirect, reason, API 403, export, self-deletion takes org and monitors). Updated delete/moderation/legal tests; test helpers tick the box like a user. Full suite and lint green. Dev env on :8080 migrated and restarted.🤖 Generated with Claude Code
https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3