Files
community-rule/lib/publishedRuleAccess.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

16 lines
499 B
TypeScript

import type { Prisma } from "@prisma/client";
import { RULE_VISIBILITY } from "./ruleVisibility";
export {
RULE_VISIBILITY,
isListedPublishedRule,
canReadPublishedRule,
isPrivilegedAdminRead,
} from "./ruleVisibility";
export type { RuleVisibility, PublishedRuleReadAccess } from "./ruleVisibility";
/** Prisma `where` for the public catalog and sitemap. */
export const LISTED_PUBLISHED_RULE_WHERE: Prisma.PublishedRuleWhereInput = {
visibility: RULE_VISIBILITY.public_and_featured,
};