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
Properties
headers?
optionalheaders?:Record<string,string>
Defined in: core/src/errors/HttpError.ts:15
Inherited from
code
readonlycode:string
Defined in: core/src/errors/ZerotalError.ts:18
Inherited from
status
readonlystatus:number=500
Defined in: core/src/errors/ZerotalError.ts:19
Inherited from
context?
readonlyoptionalcontext?:Record<string,unknown>
Defined in: core/src/errors/ZerotalError.ts:20