Fehlerkorrektur

This commit is contained in:
Bkolb 2026-04-02 20:51:11 +02:00
parent 9930782819
commit 23c29356db

View File

@ -711,12 +711,14 @@ def useradmin_user_new():
new_user_id = cur.fetchone()[0]
if selected_groups:
selected_group_ids = [int(gid) for gid in selected_groups]
cur.execute("""
SELECT id
FROM app_group
WHERE mandant_id = %s
AND id = ANY(%s)
""", (current_mandant_id, selected_groups))
AND id = ANY(%s)
""", (current_mandant_id, selected_group_ids))
valid_groups = cur.fetchall()
for row in valid_groups: