PERMISSION_MEMBER_HAS_NO_PERMISSIONMember has no permission.
Z BizKitHub Docs, dokumentacja kodów błędów API
Nazwy i opisy kodów prowadzimy po angielsku.
HTTP 403Uprawnienia
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 rozwiązać
- 1
Ask an organisation administrator to grant the missing permission to your role.
- 2
Verify in the admin UI that the role really lacks this permission (sometimes a parent permission is needed).
Przykładowa odpowiedź
API odpowiada statusem HTTP 403 i treścią w formacie JSON. Porównuj errorCode, nie message. Komunikaty mogą się zmieniać, kody pozostają stałe.
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"
}