Skip to content

Commit

Permalink
fix: Update root_ctx usage
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Nov 23, 2024
1 parent feb62bf commit e0945ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ai/backend/manager/api/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ async def create_from_params(request: web.Request, params: dict[str, Any]) -> we
if agent_list is not None:
if (
request["user"]["role"] != UserRole.SUPERADMIN
and root_ctx.local_config["manager"]["hide-agents"]
and root_ctx.c.local_config["manager"]["hide-agents"]
):
raise InsufficientPrivilege(
"You are not allowed to manually assign agents for your session."
Expand Down

0 comments on commit e0945ba

Please sign in to comment.