X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FACL%2FAPI.php;h=f3681b3fa8702eb91c056b0150f1f95fd82cb7d1;hb=f38178e6aa43297ef8b9e08ca1bcb6bd49c81473;hp=5bf1787529a22bedd0e35e4e51934a5106f620cc;hpb=414b3228db09432f1e389a89f9fb9e3f22d0f2da;p=civicrm-core.git diff --git a/CRM/ACL/API.php b/CRM/ACL/API.php index 5bf1787529..f3681b3fa8 100644 --- a/CRM/ACL/API.php +++ b/CRM/ACL/API.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,14 +28,14 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2014 + * @copyright CiviCRM LLC (c) 2004-2015 * $Id$ * */ class CRM_ACL_API { /** - * The various type of permissions + * The various type of permissions. * * @var int */ @@ -72,7 +72,7 @@ class CRM_ACL_API { } /** - * Get the permissioned where clause for the user + * Get the permissioned where clause for the user. * * @param int $type * The type of permission needed. @@ -143,7 +143,7 @@ class CRM_ACL_API { } /** - * Get all the groups the user has access to for the given operation + * Get all the groups the user has access to for the given operation. * * @param int $type * The type of permission needed. @@ -204,6 +204,7 @@ class CRM_ACL_API { ) { static $cache = array(); + $groups = array(); //@todo this is pretty hacky!!! //adding a way for unit tests to flush the cache if ($flush) {