UI Fixes p2 (#8502)
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 13s

* refactor(admin.tsx): cleanup add new admin flow

removes buggy flow. Ensures just 1 simple way to add users / update roles.

* fix(user_search_modal.tsx): ensure 'add member' button is always visible

* fix(edit_membership.tsx): ensure 'save changes' button always visible

* fix(internal_user_endpoints.py): ensure user in org can be deleted

Fixes issue where user couldn't be deleted if they were a member of an org

* fix: fix linting error
This commit is contained in:
Krish Dholakia 2025-02-12 22:51:54 -08:00 committed by GitHub
parent 2eee1cdd02
commit 3f0438a59d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 112 deletions

View file

@ -885,6 +885,11 @@ async def delete_user(
where={"user_id": {"in": data.user_ids}}
)
## DELETE ASSOCIATED ORGANIZATION MEMBERSHIPS
await prisma_client.db.litellm_organizationmembership.delete_many(
where={"user_id": {"in": data.user_ids}}
)
## DELETE USERS
deleted_users = await prisma_client.db.litellm_usertable.delete_many(
where={"user_id": {"in": data.user_ids}}