The fix you suggest seems incorrect. This part of the code is applying ACL rules to only show records that are owned by the user.
Is it possible that the reason you are not seeing all the accounts is that you are assigned a rule that only allows you to see the accounts you own?
The admin should ignore ACL rules.
You should be able to debug the app from the SOAP side.