Files
community-rule/lib/server/ruleAdmins.ts
T
adilallo 5cbda35e32 Start every Rule private, with a rotating link and files that follow its readers.
New Rules stay off lists until the person who holds the pen turns on a share link, or the team features one. Uploaded files are readable only by those readers, stripped of location metadata, and deleted with the Rule, draft, or account.
2026-11-09 19:54:04 -07:00

9 lines
306 B
TypeScript

import { getRuleAdminEmails } from "./env";
export function isRuleAdminEmail(email: string | null | undefined): boolean {
if (typeof email !== "string") return false;
const needle = email.trim().toLowerCase();
if (needle.length === 0) return false;
return getRuleAdminEmails().includes(needle);
}