Contact dashboard ignores check for logged in user
But I think it ends up not making a difference in practice. Came up during review of https://github.com/civicrm/civicrm-core/pull/20858 and will come back to this later.
if (empty($userID) && $this->_contactId) {
It was pulled out into a separate function at https://github.com/civicrm/civicrm-core/commit/2d97420b1ce7498db55e044821ad482dbe584fb3
but the $userID var is still referring to this one in a different scope: