Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
allowAll
Function · 0.85
allowAuthenticated
Function · 0.85
Calls
1
authorize
Function · 0.85
Tested by
no test coverage detected