MCPcopy
hub / github.com/dataelement/Clawith / user_can_manage_agent_id

Function user_can_manage_agent_id

backend/app/core/permissions.py:115–120  ·  view source on GitHub ↗
(
    db: AsyncSession,
    user_id: uuid.UUID | None,
    agent: Agent,
)

Source from the content-addressed store, hash-verified

113
114
115async def user_can_manage_agent_id(
116 db: AsyncSession,
117 user_id: uuid.UUID | None,
118 agent: Agent,
119) -> bool:
120 return (await get_agent_access_level_for_user_id(db, user_id, agent)) == "manage"
121
122
123async def get_agent_accessible_user_ids(db: AsyncSession, agent: Agent) -> set[uuid.UUID]:

Callers 1

Calls 1

Tested by

no test coverage detected