refactor(auth): remove bot owner linkage and enforce bot-level permissions
This commit is contained in:
@@ -57,8 +57,8 @@ def _to_auth_token_response(token: AuthToken) -> AuthTokenResponse:
|
||||
def _to_bot_principal_response(bot: BotPrincipal) -> BotPrincipalResponse:
|
||||
return BotPrincipalResponse(
|
||||
id=bot.id,
|
||||
owner_user_id=bot.owner_user_id,
|
||||
name=bot.name,
|
||||
permission=bot.permission,
|
||||
description=bot.description,
|
||||
is_active=bot.is_active,
|
||||
created_at=bot.created_at,
|
||||
|
||||
Reference in New Issue
Block a user