X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FEvent.php;h=66c504a5341bbc8410db543a85f0e1c4d7870e2c;hb=304694e1a8725a73bab84c322ff8baac0393d564;hp=c21a0def34eb4741afeca68a09e6c4442d77bdf5;hpb=ce8dad0fcf1418c934ebe696a29448b69de8f58a;p=civicrm-core.git diff --git a/Civi/Api4/Event.php b/Civi/Api4/Event.php index c21a0def34..66c504a534 100644 --- a/Civi/Api4/Event.php +++ b/Civi/Api4/Event.php @@ -14,8 +14,6 @@ * * @package CRM * @copyright CiviCRM LLC https://civicrm.org/licensing - * $Id$ - * */ @@ -31,10 +29,12 @@ namespace Civi\Api4; class Event extends Generic\DAOEntity { /** - * @return \Civi\Api4\Action\Event\Get + * @param bool $checkPermissions + * @return Action\Event\Get */ - public static function get() { - return new \Civi\Api4\Action\Event\Get(__CLASS__, __FUNCTION__); + public static function get($checkPermissions = TRUE) { + return (new Action\Event\Get(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); } }