MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / allow

Function allow

packages/authorization/src/decorators/authorize.ts:130–130  ·  view source on GitHub ↗
(...roles: string[])

Source from the content-addressed store, hash-verified

128 * @param roles
129 */
130 export const allow = (...roles: string[]) => authorize({allowedRoles: roles});
131 /**
132 * Shortcut to configure denied roles
133 * @param roles

Callers 2

allowAllFunction · 0.85
allowAuthenticatedFunction · 0.85

Calls 1

authorizeFunction · 0.85

Tested by

no test coverage detected