Regression was caused by 918e583a updating DAO::getSelectWhereClause but not CRM_Contact_BAO_Query::generatePermissionClause. Turns out the code was being duplicated and the latter could just call the former.
Regression was caused by 918e583a updating DAO::getSelectWhereClause but not CRM_Contact_BAO_Query::generatePermissionClause. Turns out the code was being duplicated and the latter could just call the former.