diff --git a/src/api/events.py b/src/api/events.py index f70ab52..dcd5a4d 100644 --- a/src/api/events.py +++ b/src/api/events.py @@ -360,7 +360,7 @@ async def partial_update_event( detail="Event with given id doesn't exist", ) - if cast(User, event.user).id != user: + if cast(User, event.user).id != user.id: raise HTTPException( status_code=status.HTTP_403_FORBIDDEN, detail="You can only access your own events",