projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4baebc
)
APIv4 - Make Permission 'group' discoverable in API Explorer
author
Coleman Watts
<coleman@civicrm.org>
Tue, 18 Jan 2022 02:52:45 +0000
(21:52 -0500)
committer
Coleman Watts
<coleman@civicrm.org>
Tue, 18 Jan 2022 02:52:45 +0000
(21:52 -0500)
Civi/Api4/Permission.php
patch
|
blob
|
blame
|
history
diff --git
a/Civi/Api4/Permission.php
b/Civi/Api4/Permission.php
index 07bf9ff34060ac474881a62f8cdc0c801ad743a2..a8a270c0918b9e60e45e44b948fee1e22303fd7b 100644
(file)
--- a/
Civi/Api4/Permission.php
+++ b/
Civi/Api4/Permission.php
@@
-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',