Skip to main content
zerotal

Documentation


Documentation / @zerotal/tenancy / TenantForbiddenError

Class: TenantForbiddenError

Defined in: tenancy/src/errors.ts:40

The current user tried an admin-only tenant action (update/delete) without being an admin member of the tenant. Renders as a 403. Use the force* variants to bypass the check from trusted server code.

Extends

Constructors

Constructor

new TenantForbiddenError(message?): TenantForbiddenError

Defined in: tenancy/src/errors.ts:41

Parameters

message?

string = "You don’t have permission to manage this account."

Returns

TenantForbiddenError

Overrides

HttpError.constructor

Properties

headers?

optional headers?: Record<string, string>

Defined in: core/src/errors/HttpError.ts:15

Inherited from

HttpError.headers


code

readonly code: string

Defined in: core/src/errors/ZerotalError.ts:18

Inherited from

HttpError.code


status

readonly status: number = 500

Defined in: core/src/errors/ZerotalError.ts:19

Inherited from

HttpError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: core/src/errors/ZerotalError.ts:20

Inherited from

HttpError.context