Skip to content

Commit

Permalink
Delete scope from GET lecturer
Browse files Browse the repository at this point in the history
  • Loading branch information
Temmmmmo authored Nov 7, 2024
1 parent 22ffa37 commit 030e4e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rating_api/routes/lecturer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]`
Expand Down Expand Up @@ -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"]`
Expand Down

0 comments on commit 030e4e7

Please sign in to comment.