Merge pull request #18662 from eileenmcnaughton/blockdel2
[civicrm-core.git] / Civi / Api4 / Relationship.php
index d1a76fede90274d6200b8a4e18c3481d5aea3801..dd76ecc23e211f0593c3db5f7b74f14c661b19a1 100644 (file)
@@ -14,8 +14,6 @@
  *
  * @package CRM
  * @copyright CiviCRM LLC https://civicrm.org/licensing
- * $Id$
- *
  */
 
 
@@ -31,10 +29,12 @@ namespace Civi\Api4;
 class Relationship extends Generic\DAOEntity {
 
   /**
-   * @return \Civi\Api4\Action\Relationship\Get
+   * @param bool $checkPermissions
+   * @return Action\Relationship\Get
    */
-  public static function get() {
-    return new \Civi\Api4\Action\Relationship\Get(static::class, __FUNCTION__);
+  public static function get($checkPermissions = TRUE) {
+    return (new Action\Relationship\Get(static::class, __FUNCTION__))
+      ->setCheckPermissions($checkPermissions);
   }
 
 }