Skip to main content

AdminUserAuthorizeFunction

AdminUserAuthorizeFunction = (params?) => Promise<{ allowed?: boolean; error?: string; }>

Allow to make extra authorization

Parameters

ParameterTypeDescription
params?{ adminforth: IAdminForth; adminUser: AdminUser; extra?: HttpExtra; response: IAdminForthHttpResponse; }-
params.adminforth?IAdminForthAdminforth instance.
params.adminUser?AdminUserAdmin user performing the action.
params.extra?HttpExtraExtra HTTP information. Prefer using extra.response over the top-level response field.
params.response?IAdminForthHttpResponseHTTP response object. Deprecated Since 1.2.9. Will be removed in 2.0.0. Use extra.response instead.

Returns

Promise<{ allowed?: boolean; error?: string; }>