Need help fixing door lock

Figured out the issue. The door latching cam must be completely engaged when the door is closed. That throws the lever that was stopping the lock lever from moving to the locked position. I had to adjust the striker post to move that latching cam far enough. Works perfectly now!