Need help fixing door lock

I totally blanked on mentioning that lol. Yep door has to be closed in order to lock it from inside or outside.
Glad you fingered it out.
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!