diff --git a/kdb-bot/src/bot_api/service/auth_service.py b/kdb-bot/src/bot_api/service/auth_service.py index ba45a15531..be0859db20 100644 --- a/kdb-bot/src/bot_api/service/auth_service.py +++ b/kdb-bot/src/bot_api/service/auth_service.py @@ -204,6 +204,7 @@ class AuthService(AuthServiceABC): async def get_auth_user_by_email_async(self, email: str, with_password: bool = False) -> AuthUserDTO: try: + # todo: check if logged in user is admin then send mail user = self._auth_users.get_auth_user_by_email(email) return AUT.to_dto(user, password=user.password if with_password else None) except Exception as e: