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.
16 lines
499 B
TypeScript
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,
|
|
};
|