From c4f002fd453a6c96a3fff589e936146927892071 Mon Sep 17 00:00:00 2001 From: MingxuanGame Date: Sun, 14 Sep 2025 04:56:27 +0000 Subject: [PATCH] fix(room): change the scope of get room API from `lazer` to `public` --- app/router/v2/room.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/router/v2/room.py b/app/router/v2/room.py index 064d061..7b20413 100644 --- a/app/router/v2/room.py +++ b/app/router/v2/room.py @@ -167,7 +167,7 @@ async def get_room( default="", description=("房间分类:NORMAL 普通歌单模式房间 / REALTIME 多人游戏房间 / DAILY_CHALLENGE 每日挑战 (可选)"), ), - current_user: User = Security(get_client_user), + current_user: User = Security(get_current_user, scopes=["public"]), redis: Redis = Depends(get_redis), ): db_room = (await db.exec(select(Room).where(Room.id == room_id))).first()