Instance settings foundation and registration-mode admin toggle #19
Labels
No Label
area:auth
area:docs
area:export
area:ops
area:storage
area:supply-chain
auth
backend
blocked
collab
deployment
docs
effort:L
effort:M
effort:S
frontend
plugins
qa
vs-nfd
vs-nfd:blocker
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: stwaidele/dorfteich#19
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Instance-level configuration (registration mode now; quotas, legal pages, upload rules later) needs one typed, cached accessor instead of scattered reads.
Scope
Implement
InstanceSettingsService: typed getters/setters over theinstance_settingstable with Zod-validated values and in-process cache with invalidation;GET/PATCH /admin/settings(Site-Admin-only — introduce theSiteAdminGuardusingusers.is_site_admin); exposeregistration_modeand instance default locale. Minimal admin page in the web app (visible only to Site Admins) with the two settings.Acceptance criteria
registration_modetoclosedtakes effect without restart (cache invalidation test)Technical notes
instance_settings), security.md (admin actions audit-logged — write an audit log line).approval_required(do not implement it).Dependencies
Depends on #13, #14, #16.
Size: ~1 day
Conventions: English code/comments, clear human-readable code, no hard-coded UI strings (ADR 0012, add
deanden), permission checks only via the shared guard (docs/architecture/permissions.md). Read the referenced ADRs before starting.