yiekheng
d236196476
feat(web): getCurrentUser / requireUser / requireAdmin helpers
...
Reads the session cookie from next/headers, verifies via auth-cookie,
loads the operators row, returns the shape every existing call site
expects (.id, .defaultTimezone, etc) plus the new .role and
.username. getSeededOperator stays as a thin compat shim that
delegates to getCurrentUser, so the ~12 tests that mock
@/lib/operator keep working without churn.
2026-05-10 17:46:16 +08:00
..
2026-05-10 17:43:01 +08:00
2026-05-10 17:43:01 +08:00
2026-05-10 17:46:16 +08:00
2026-05-10 17:46:16 +08:00
2026-05-09 23:03:10 +08:00
2026-05-09 23:03:10 +08:00
2026-05-10 01:22:22 +08:00
2026-05-10 01:22:22 +08:00
2026-05-09 22:48:00 +08:00
2026-05-09 22:48:00 +08:00
2026-05-10 15:48:52 +08:00
2026-05-10 15:48:52 +08:00
2026-05-10 15:54:21 +08:00
2026-05-10 17:46:16 +08:00
2026-05-10 08:36:26 +08:00
2026-05-10 08:36:26 +08:00
2026-05-10 16:32:53 +08:00
2026-05-09 23:03:10 +08:00
2026-05-09 23:03:10 +08:00
2026-05-10 12:59:13 +08:00
2026-05-10 12:59:13 +08:00
2026-05-10 16:32:53 +08:00
2026-05-10 16:32:53 +08:00
2026-05-10 12:15:37 +08:00
2026-05-10 12:15:37 +08:00
2026-05-10 13:43:22 +08:00
2026-05-10 13:43:22 +08:00
2026-05-10 16:32:53 +08:00
2026-05-10 16:32:53 +08:00
2026-05-10 15:10:09 +08:00
2026-05-10 15:10:09 +08:00
2026-05-10 17:44:10 +08:00
2026-05-10 17:44:10 +08:00
2026-05-09 23:03:10 +08:00
2026-05-09 22:46:16 +08:00
2026-05-10 13:07:54 +08:00
2026-05-10 13:07:54 +08:00