Page Contents
Home > @loopback/authorization > authorize > denyAllExcept
authorize.denyAllExcept() function
Deny all but the given roles
Signature:
denyAllExcept: (...roles: string[]) => (target: any, method?: string | undefined, methodDescriptor?: TypedPropertyDescriptor<any> | undefined) => any
Parameters
Parameter | Type | Description |
---|---|---|
roles | string[] |
Returns:
(target: any, method?: string | undefined, methodDescriptor?: TypedPropertyDescriptor<any> | undefined) => any