···22import { env } from '$env/dynamic/public';
3344/**
55- * Controls whether the section management UI is exposed to users.
55+ * DIDs that always have section-editing UI enabled, regardless of the
66+ * PUBLIC_SECTIONS_ENABLED env flag. Useful for dogfooding with specific users.
77+ */
88+const ALLOWED_DIDS: readonly string[] = [
99+ // flo-bit.dev
1010+ 'did:plc:257wekqxg4hyapkq6k47igmp'
1111+];
1212+1313+/**
1414+ * Controls whether the section management UI is exposed to a given user.
615 * When false, users can only edit the default grid section — no adding,
716 * reordering, or deleting sections (or hero/other section types).
817 *
99- * Set PUBLIC_SECTIONS_ENABLED=true in the environment to enable.
1818+ * Enabled when PUBLIC_SECTIONS_ENABLED=true, in dev mode, or the given DID
1919+ * is in ALLOWED_DIDS.
1020 */
1111-export const SECTIONS_EDITING_ENABLED = env.PUBLIC_SECTIONS_ENABLED === 'true';
2121+export function isSectionsEditingEnabled(did?: string | null): boolean {
2222+ if (env.PUBLIC_SECTIONS_ENABLED === 'true') return true;
2323+ return !!did && ALLOWED_DIDS.includes(did);
2424+}