Skip to content

Commit 9966cb2

Browse files
committed
fix: add namespace_name
1 parent c5d09e1 commit 9966cb2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

veadk/tools/builtin_tools/agent_authorization.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async def check_agent_authorization(
5959
role_id = actors[0]
6060

6161
principal = {"Type": "user", "Id": user_id}
62-
operation = {"Type": "Action", "Id": "invoke"}
62+
operation = {"Type": "action", "Id": "invoke"}
6363
resource = {"Type": "agent", "Id": role_id}
6464
original_callers = [{"Type": "agent", "Id": actor} for actor in actors[1:]]
6565

@@ -68,6 +68,7 @@ async def check_agent_authorization(
6868
operation=operation,
6969
resource=resource,
7070
original_callers=original_callers,
71+
namespace_name="wqf--test",
7172
)
7273

7374
if allowed:

0 commit comments

Comments
 (0)