Skip to content

Use non-deprecated form of permission definition

ayduns requested to merge ayduns/reportplus:perm_fix into 2.7.x

Before:

Deprecation warning:

[PHP User Deprecation] Permission 'access ReportPlus' should be declared with 'label' and 'description' keys. See https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_permission/ Caller: CRM_Core_Permission::assembleBasicPermissions at /opt/buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Core/Error.php:1129 [PHP User Deprecation] Permission 'administer ReportPlus' should be declared with 'label' and 'description' keys. See https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_permission/ Caller: CRM_Core_Permission::assembleBasicPermissions at /opt/buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Core/Error.php:1129

After:

No warning

Merge request reports