Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.1
-
Component/s: Core CiviCRM
-
Labels:None
Description
If you attempt to use the API to lookup profile fields during cron.php (rare case, I know) this file will not have been previously included
Currently reads:
if ( ! $skipPermission )
{ $permissionClause = CRM_Core_Permission::ufGroupClause( CRM_Core_Permission::VIEW, 'g.' ); $query .= " AND $permissionClause "; }Should read:
if ( ! $skipPermission )
{ require_once('CRM/Core/Permission.php'); $permissionClause = CRM_Core_Permission::ufGroupClause( CRM_Core_Permission::VIEW, 'g.' ); $query .= " AND $permissionClause "; }