feat(preferences): organisation defaults + global-permission gating
Merged
PA
4mo ago+728+728+012345678901234567890123456789-15-15-01234567890123456789
Depends on #9880
What
The organisation-facing preferences slice: an Organisation defaults tab (/profile/organisation-defaults) — visible only to users holding the manage_global_preferences permission — for editing the org-wide default date format and timezone. Bundles the account-wide permission plumbing that gates it (getGlobalPermissions, the hasGlobalPermission rule with DENY-preemption + super-admin bypass, useHasGlobalPermission, RequireGlobalPermission) together with its only consumer, so the slice is self-contained and knip-clean.
Stack
Re-split from the original #9776 along vertical slices so each PR passes CI's knip gate.
- #9870 —
DetailsColumnslayout primitive - #9880 — personal preferences (Profile tab)
- this PR — organisation defaults + global-permission gating (stacks on #9880)
Test
biome ci, knip, tsc clean; permission/preferences/user-profile tests pass (68).
🤖 Generated with Claude Code