BizKitHub
PERMISSION_MEMBER_HAS_NO_PERMISSION

Member has no permission.

Z BizKitHub Docs, referencia chybových kódov API

Názvy a popisy kódov udržiavame v angličtine.

HTTP 403Oprávnenia
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")`.

Ako to vyriešiť

  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ážka odpovede

API odpovie statusom HTTP 403 a telom vo formáte JSON. Porovnávajte errorCode, nie message. Správy sa môžu preformulovať, kódy zostávajú rovnaké.

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"
}