🐛 Handle non-existing user IDs in `read_user_by_id`
Fix an issue where read_user_by_id would fail to return if the requested user ID did not exist.
- Return
404 - Not Foundwhen ID does not exist. - Request without sufficient permission will always result in
403 - Unauthorized. - Add tests to test requesting non-existing user IDs as superuser and normal user.
Hello. I'd like to know why this pull request has not been approved. It is valid.
Yeah pretty minor upgrade but it makes sens to merge IMO.
@YuriiMotov please have a look at the adjustments I made. I hope I could address all your concerns.
Note, I rebased the original commits onto the master branch so test_get_existing_user_current_user does not show as code contributed by me, since I did not change it.
From my side this is ready to merge.
@YuriiMotov, thank you for taking the time to review this pull request!
This pull request has a merge conflict that needs to be resolved.