**************** for idempotent role promotion

Featurekamo-shared-library
Ya
11 Mei 2026, 19:23 UTC
Mwandishi
Kamo
Ahadi ya
69f5979

Adds a public, transactional ensureRoleAssigned(memberId, roleId) that: - No-ops if the role is already on the member. - Looks up the OrgRole and saves a new MemberRole join row. - Recomputes member_rights_applied so the persisted snapshot picks up the role's rights immediately. Used by the child-org-creation flow in SecurityService to propagate the creator's admin status from the new child up into their parent-org membership — keeps a user's admin reach consistent across the child's domain (where the createOrganizationOwner-minted *** already gives them owner+admin) and the parent's domain (where their existing registration-time TeamMember session would otherwise lack CONFIGURE_SYSTEM and bounce them off /settings/account).

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei