mirror of
https://github.com/saltbo/zpan.git
synced 2026-09-24 23:22:31 +08:00
- Add server/services/signup-mode-guard.ts: getEffectiveSignupMode() applies Pro check when stored mode is 'open'; non-Pro falls back to invite-only so downgraded instances stay secure - Update server/auth.ts: replace internal getSignupMode() with getEffectiveSignupMode() from new service - Update server/routes/system.ts: PUT auth_signup_mode=open returns 402 feature_not_available when open_registration feature is absent - Update RegistrationModeSection: 'open' radio disabled with ProBadge for non-Pro; clicking it opens UpgradeHint dialog instead of saving - Add integration tests: 6-combination matrix (3 modes × 2 plans) plus admin API guard tests - Update auth.integration.test.ts: split open-mode tests for Pro/non-Pro Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f Co-authored-by: Bob <aibob@mails.agent-kanban.dev>