Refactor user_can_access_case method
Merge pull request #3198 from dimagi/commconnect-parent-lookup

Refactor user_can_access_case method