From 030e4e7a67ddf1ddadf3f537e765b18a35eb0e1d Mon Sep 17 00:00:00 2001 From: Morozov Artem <126605382+Temmmmmo@users.noreply.github.com> Date: Thu, 7 Nov 2024 20:33:04 +0300 Subject: [PATCH] Delete scope from GET lecturer --- rating_api/routes/lecturer.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rating_api/routes/lecturer.py b/rating_api/routes/lecturer.py index eb3b770..8053a84 100644 --- a/rating_api/routes/lecturer.py +++ b/rating_api/routes/lecturer.py @@ -36,8 +36,7 @@ async def create_lecturer( @lecturer.get("/{id}", response_model=LecturerGet) async def get_lecturer( id: int, - info: list[Literal["comments", "mark"]] = Query(default=[]), - _=Depends(UnionAuth(scopes=["rating.lecturer.read"], allow_none=False, auto_error=True)), + info: list[Literal["comments", "mark"]] = Query(default=[]) ) -> LecturerGet: """ Scopes: `["rating.lecturer.read"]` @@ -80,8 +79,7 @@ async def get_lecturers( offset: int = 0, info: list[Literal["comments", "mark"]] = Query(default=[]), order_by: list[Literal["general", '']] = Query(default=[]), - subject: str = Query(''), - _=Depends(UnionAuth(scopes=["rating.lecturer.read"], allow_none=False, auto_error=True)), + subject: str = Query('') ) -> LecturerGetAll: """ Scopes: `["rating.lecturer.read"]`