X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FDomain.php;h=c72a1d2c46f1164111fc4e43d52a3e0829b92799;hb=69b599e16300cbaab4f362867f05d1478f33c581;hp=589f57052e568c13c642ac5f0d53f7d8889fdc5d;hpb=78fb1616f81632958eaa809987c691d32b81ad46;p=civicrm-core.git diff --git a/Civi/Api4/Domain.php b/Civi/Api4/Domain.php index 589f57052e..c72a1d2c46 100644 --- a/Civi/Api4/Domain.php +++ b/Civi/Api4/Domain.php @@ -30,8 +30,13 @@ namespace Civi\Api4; */ class Domain extends Generic\DAOEntity { - public static function get() { - return new \Civi\Api4\Action\Domain\Get(__CLASS__, __FUNCTION__); + /** + * @param bool $checkPermissions + * @return Action\Domain\Get + */ + public static function get($checkPermissions = TRUE) { + return (new Action\Domain\Get(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); } }