APIv4 - Enforce contact field permissions via metadata instead of class override
authorColeman Watts <coleman@civicrm.org>
Fri, 24 Apr 2020 19:32:42 +0000 (15:32 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 24 Apr 2020 19:32:42 +0000 (15:32 -0400)
commit0d20e81c8302affeda7fe7c9325cc6e5170366cd
tree37abcf35968cd800b3a1290423b16e1e9aaa441f
parentb2358a7b9db6d963b08603b0794515dd42db229a
APIv4 - Enforce contact field permissions via metadata instead of class override

Now that 'permission' metadata has been added to the schema, there's no need for specialized code for that field.
This adds generic code to handle any field with permissions declared.
Civi/Api4/Action/Contact/GetFields.php [deleted file]
Civi/Api4/Contact.php
Civi/Api4/Generic/BasicGetFieldsAction.php