KamoCRM

Security role save for locked roles and clearer API errors

Fixkamo-internal
Shipped
20 ஏப்ரல், 2026 அன்று 9:51 PM UTC
Author
kamo
Commit
a48495b

- When isAllowEditSecurity is false, omit rights and securityModelIds from the PUT body so SecurityService accepts metadata-only updates (session timeout, description) instead of rejecting permission payloads. - Treat fully locked roles only when isAllowEditSecurity === false, not when the field is undefined, so legacy rows without the flag can still be edited. - Parse JSON error bodies from failed role updates instead of relying on an often-empty statusText.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing