CRM-19934 improvement on acl cache.
authoreileen <emcnaughton@wikimedia.org>
Thu, 9 Feb 2017 01:44:41 +0000 (14:44 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 9 Feb 2017 01:44:41 +0000 (14:44 +1300)
commit8d0a0fd0360c1e6436ed65198d7ee41af063130c
treeabeef2c9532dfb82d1a21b24dd05871336f8a42a
parent573c2c3395b70ad8f4f82283f2ece9fc39c60abd
CRM-19934 improvement on acl cache.

This change means that when we are checking the allow function we do not add the harmful
OR to the query.

The 'view my contact' & 'edit my contact' permissions have already been checked for.

Adding them into the ACL query with an OR causes serious performance issues, as
elsewhere commented. We can & should avoid it here
CRM/Contact/BAO/Contact/Permission.php