Issue #1065: Opening patient records with view access fails when using the LIMS authenticator
Better fix.