Page Contents

Home > @loopback/authorization > authorize > allowAllExcept

authorize.allowAllExcept() function

Allow all but the given roles

Signature:

allowAllExcept: (...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