It looks like one check function is only ever called by the other,
and the other isn't called from anywhere.
What these functions are supposed to do is unclear.
The code comment appears to be wrong; the variable $str
is not a permission string but is inserted into a query
as civicrm_acl.object_table.
* true if yes, else false
*/
public static function check($str, $contactID = NULL) {
+ \CRM_Core_Error::deprecatedWarning(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated.');
if ($contactID == NULL) {
$contactID = CRM_Core_Session::getLoggedInContactID();
}
* @return bool
*/
public static function check($str, $contactID) {
+ \CRM_Core_Error::deprecatedWarning(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated.');
$acls = CRM_ACL_BAO_Cache::build($contactID);