Files
wekan/server
Lauri Ojansivu aa9a4ba2ea Accepting the terms works: the account keeps the acceptance, and the box can be ticked.
Found by running tests/playwright/specs/legal-acceptance.e2e.js against a
live server:

- The users schema did not know legalAcceptances, so collection2 dropped
  every acceptance without an error: the dialog closed, and the next sign-in
  asked again. It is in the schema now.
- The global form rules hide native checkboxes, so the acceptance dialog,
  the sign-up box and the Published and Require acceptance switches of
  Admin Panel / Settings / Legal pages had nothing to tick. They are shown,
  with the whole line as the target, and the Accept button looks disabled
  until every page is ticked.
- The gate re-reads the requirement before it refuses anything, so one
  turned off elsewhere - another server process, or the database - never
  blocks anybody for the minute until the next refresh.

The spec waits for the page the acceptance reloads. And
tests/crossSiteRequest.test.cjs allows the data-access log's raw handler,
which only listens for a finished 200 and never answers or reads the
cookie.

Thanks to xet7 !
2026-11-24 04:55:33 +02:00
..
2026-03-22 17:17:48 +02:00
2021-06-14 15:11:21 +02:00