KamoCRM

Add RoleRightsSyncRunner to backfill missing role rights

FeatureInitializerService
Shipped
22 மார்ச், 2026 அன்று 9:13 PM UTC
Author
Kamo
Commit
6b5b757

When new RoleRightType entries are added to the enum, existing roles don't have OrgRoleRight entries for them. This runner checks all roles on startup and adds missing entries — GRANTED for admin roles, defaultSetting for others. Safe to re-run, only inserts missing entries.

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