feat(preferences): organisation defaults + global-permission gating

Merged
PA
4mo ago
+728-15

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.

  1. #9870 — DetailsColumns layout primitive
  2. #9880 — personal preferences (Profile tab)
  3. 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