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.
9 lines
306 B
TypeScript
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);
|
|
}
|