Skip to content

Commit bc00a6b

Browse files
authored
Fix room scope
1 parent 8a9ffc8 commit bc00a6b

File tree

1 file changed

+1
-1
lines changed
  • calendar_backend/routes/room

1 file changed

+1
-1
lines changed

calendar_backend/routes/room/room.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def create_room(room: RoomPost, _=Depends(UnionAuth(scopes=["timetable.roo
4848

4949

5050
@router.patch("/{id}", response_model=RoomGet)
51-
async def patch_room(id: int, room_inp: RoomPatch, _=Depends(UnionAuth(scopes=["timetable.room.upadte"]))) -> RoomGet:
51+
async def patch_room(id: int, room_inp: RoomPatch, _=Depends(UnionAuth(scopes=["timetable.room.update"]))) -> RoomGet:
5252
room = (
5353
Room.get_all(session=db.session)
5454
.filter(Room.name == room_inp.name, Room.building == room_inp.building)

0 commit comments

Comments
 (0)