Remove unindexed join from getACLRoles query
authoreileen <emcnaughton@wikimedia.org>
Thu, 2 Jan 2020 02:58:24 +0000 (15:58 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 2 Jan 2020 02:58:24 +0000 (15:58 +1300)
commit99f37ee2f99c18f876fc8b1bd98443b49cb70ee3
tree62296375a0508b81e2adeaf5023e3e8a08bbe8ba
parent694405c2b378a979ab1f5761cb2eeb45bfe5feb7
Remove unindexed join from getACLRoles query

Replaces the indexed join with a  WHERE  on appropriate entity_id values.

I'm not a fan of CRM_Core_OptionGroup::values('acl_role') but it's what is used on the form that saves this.

The form adds in two pseudovalues but they should stay out to respect the INNER join
CRM/ACL/BAO/ACL.php