BizKitHub
PERMISSION_MEMBER_HAS_NO_PERMISSION

Member has no permission.

Z BizKitHub Docs, reference chybových kódů API

Názvy a popisy kódů udržujeme v angličtině.

HTTP 403Oprávnění
The authenticated member is part of the organisation but their role does not grant access to the requested module or action. Attach the module/action as parametric context when throwing — e.g. `throw ApiError("PERMISSION_MEMBER_HAS_NO_PERMISSION", "calendar:update")`.

Jak to vyřešit

  1. 1

    Ask an organisation administrator to grant the missing permission to your role.

  2. 2

    Verify in the admin UI that the role really lacks this permission (sometimes a parent permission is needed).

Ukázka odpovědi

API odpoví statusem HTTP 403 a tělem ve formátu JSON. Porovnávejte errorCode, ne message. Zprávy se mohou přeformulovat, kódy zůstávají stejné.

application/json
{
  "state": "error",
  "code": 403,
  "message": "Member has no permission.",
  "errorCode": "PERMISSION_MEMBER_HAS_NO_PERMISSION",
  "hint": "The authenticated member is part of the organisation but their role does not grant access to the requested module or action. Attach the module/action as parametric context when throwing — e.g. `throw ApiError(\"PERMISSION_MEMBER_HAS_NO_PERMISSION\", \"calendar:update\")`.",
  "documentationUrl": "https://docs.bizkithub.com/errors/PERMISSION_MEMBER_HAS_NO_PERMISSION"
}