frontend 2026-06-10 bontva a 2 felület
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user