Skip to content

Commit 3927e0c

Browse files
fregataaclaudelablup-octodog
authored
fix(BA-4493): use user_uuid instead of group_id as scope_id in session RBACEntityCreator (#8993)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: octodog <mu001@lablup.com>
1 parent 4c2e995 commit 3927e0c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changes/8993.fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix incorrect scope_id (group_id instead of user_uuid) in RBACEntityCreator for session creation

src/ai/backend/manager/repositories/scheduler/db_source/db_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ async def enqueue_session(
11861186
spec=SessionRowCreatorSpec(row=session),
11871187
scope_ref=ScopeId(
11881188
scope_type=ScopeType.USER,
1189-
scope_id=str(session_data.group_id),
1189+
scope_id=str(session_data.user_uuid),
11901190
),
11911191
additional_scope_refs=[],
11921192
entity_type=EntityType.SESSION,

0 commit comments

Comments
 (0)