Guard admin-essential rights + re-seed roles on template edit

Fixkamo-shared-library
Ya
11 Mei 2026, 20:13 UTC
Mwandishi
Kamo
Ahadi ya
88a8d63

HIGH: **************** now refuses to persist a NUKE or FORCE_NUKE setting on any of the ADMINISTRATOR template's admin-essential rights (CONFIGURE_SYSTEM, MANAGE_MEMBER_SECURITY, MANAGE_MEMBERS, EDIT_MEMBER_ACCESS_LEVEL, ALLOW_PROMOTING_MEMBERS). Without this guard an admin (or a hostile API caller) could lock every child-org owner under a security model out of /settings/account on their own org, with no UI path to recover. Throws **************** which the existing controller-level catch surfaces as 400 with the offending right + setting in the message. MEDIUM: **************** now re-runs **************** for each affected org BEFORE **************** This keeps the org_role_rights table in sync with the template after admins edit a security model — previously only member_rights_applied was refreshed, so the seeded role-rights drifted from the template and confused admins inspecting roles via the UI or direct SQL.

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