From 586344a7d28cfc5439de232f545365b76a5bd609 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 18 Dec 2019 22:47:10 -0800 Subject: [PATCH] (NFC) Expand docblock for afform_civicrm_permission_check() --- ext/afform/core/afform.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/afform/core/afform.php b/ext/afform/core/afform.php index b103781824..3ec331b376 100644 --- a/ext/afform/core/afform.php +++ b/ext/afform/core/afform.php @@ -462,6 +462,13 @@ function afform_civicrm_alterMenu(&$items) { /** * Implements hook_civicrm_permission_check(). * + * This extends the list of permissions available in `CRM_Core_Permission:check()` + * by introducing virtual-permissions named `@afform:myForm`. The evaluation + * of these virtual-permissions is dependent on the settings for `myForm`. + * `myForm` may be exposed/integrated through multiple subsystems (routing, + * nav-menu, API, etc), and the use of virtual-permissions makes easy to enforce + * consistent permissions across any relevant subsystems. + * * @see CRM_Utils_Hook::permission_check() */ function afform_civicrm_permission_check($permission, &$granted, $contactId) { -- 2.25.1