MCPcopy
hub / github.com/OpenPipe/OpenPipe / requireNothing

Function requireNothing

app/src/utils/accessControl.ts:25–27  ·  view source on GitHub ↗
(ctx: TRPCContext)

Source from the content-addressed store, hash-verified

23
24// No-op method for protected routes that really should be accessible to anyone.
25export const requireNothing = (ctx: TRPCContext) => {
26 ctx.markAccessControlRun();
27};
28
29export const requireCanViewProject = async (projectId: string, ctx: TRPCContext) => {
30 ctx.markAccessControlRun();

Callers 3

projects.router.tsFile · 0.90
users.router.tsFile · 0.90
payments.router.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected