Skip to content

permissions

permissions(permissions): (target, propertyKey?, descriptor?) => void

When applied to an Endpoint, Session, or Data derived Roli class, sets the permissions one or more OAuth2 scopes have to the objects in the database. The least restrictive permissions will take effect. Unless the user has a scope that’s been given NoAccess, the user will not be granted access regardless of the other permissions granted by other scopes.

Parameters

permissions: Object | Object[]

Returns

Function

Parameters

target: any

propertyKey?: string | symbol

descriptor?: PropertyDescriptor

Returns

void


Generated using typedoc-plugin-markdown and TypeDoc