Page Contents

Home > @loopback/authorization > authorize > deny

authorize.deny() function

Shortcut to configure denied roles

Signature:

deny: (...roles: string[]) => (target: any, method?: string, methodDescriptor?: TypedPropertyDescriptor<any>) => any

Parameters

Parameter Type Description

roles

string[]

Returns:

(target: any, method?: string, methodDescriptor?: TypedPropertyDescriptor<any>) => any