Apply suggestion from @greptile-apps[bot]

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Oliver Jensen 2026-09-08 16:41:36 +02:00 committed by GitHub
parent 332826e4cb
commit 4439c329c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -570,7 +570,7 @@ async def new_user(
# generate_key_helper_fn only forwards object_permission_id, so without this the entitlement
# the caller sent would be dropped on the floor.
data_json = await _set_object_permission(data_json=data_json, prisma_client=prisma_client)
data_json.pop("password", None) # always None: NewUserRequest.password_not_supported rejects any other value
data_json.pop("password", None)
teams = data.teams
if teams is None:
teams = check_if_default_team_set()