LibreChat/packages
Dustin Healy c89b5db55c fix: scope rename rollback to only migrated users, prevent cross-role corruption
Capture user IDs before forward migration so the rollback path only
reverts users this request actually moved. Previously the rollback called
updateUsersByRole(newName, currentName) which would sweep all users with
the new role — including any independently assigned by a concurrent admin
request — causing silent cross-role data corruption.

Adds findUserIdsByRole and updateUsersRoleByIds to the data layer.
Extracts rollbackMigratedUsers helper to deduplicate rollback sites.
2026-03-27 08:50:16 -07:00
..
api fix: scope rename rollback to only migrated users, prevent cross-role corruption 2026-03-27 08:50:16 -07:00
client 📁 refactor: Prompts UI (#11570) 2026-03-22 16:56:22 -04:00
data-provider 🎛️ feat: DB-Backed Per-Principal Config System (#12354) 2026-03-25 19:39:29 -04:00
data-schemas fix: scope rename rollback to only migrated users, prevent cross-role corruption 2026-03-27 08:50:16 -07:00