APIv4 - Make Permission 'group' discoverable in API Explorer
authorColeman Watts <coleman@civicrm.org>
Tue, 18 Jan 2022 02:52:45 +0000 (21:52 -0500)
committerColeman Watts <coleman@civicrm.org>
Tue, 18 Jan 2022 02:52:45 +0000 (21:52 -0500)
Civi/Api4/Permission.php

index 07bf9ff34060ac474881a62f8cdc0c801ad743a2..a8a270c0918b9e60e45e44b948fee1e22303fd7b 100644 (file)
@@ -43,6 +43,14 @@ class Permission extends Generic\AbstractEntity {
           'name' => 'group',
           'title' => 'Group',
           'data_type' => 'String',
+          'options' => [
+            'civicrm' => 'civicrm',
+            'cms' => 'cms',
+            'const' => 'const',
+            'afform' => 'afform',
+            'afformGeneric' => 'afformGeneric',
+            'unknown' => 'unknown',
+          ],
         ],
         [
           'name' => 'name',