frontend 2026-06-10 bontva a 2 felület

This commit is contained in:
Roo
2026-06-10 08:06:07 +00:00
parent b84b1bab41
commit 90e3173fbc
59 changed files with 8616 additions and 1412 deletions

View File

@@ -402,8 +402,8 @@ async def update_active_organization(
detail="You are not a member of this organization"
)
# Update user's scope_id
current_user.scope_id = org_id
# Update user's scope_id (stored as string in DB, convert from int)
current_user.scope_id = str(org_id) if org_id is not None else None
try:
await db.commit()
@@ -419,7 +419,7 @@ async def update_active_organization(
"role": role_key,
"rank": DEFAULT_RANK_MAP.get(role_key, "user"),
"scope_level": "organization" if org_id else "personal",
"scope_id": org_id,
"scope_id": str(org_id) if org_id is not None else None,
"person_id": str(current_user.person_id) if current_user.person_id else None,
}