Afform - Allow `af-entity` to specify the `security` and `actions`
authorTim Otten <totten@civicrm.org>
Thu, 11 Feb 2021 02:47:52 +0000 (18:47 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 17 Feb 2021 09:24:25 +0000 (01:24 -0800)
commitff449eddedf7cb86c683c7799d8e3e98836bd9a7
tree1f57906efbd95492654ae4e5169c3fdf51201083
parent0fd2d6af2c865a13875021fbfbc81470495d28dc
Afform - Allow `af-entity` to specify the `security` and `actions`

* `actions` indicates whether this entity can be used for creating or updating data
* `security` indicates whether it uses role-based access-control (like the standard Civi admin UI)
  or form-based access-control (dependent entirely on form configuration)
ext/afform/core/CRM/Afform/ArrayHtml.php
ext/afform/core/Civi/Afform/FormDataModel.php
ext/afform/core/tests/phpunit/Civi/Afform/FormDataModelTest.php
ext/afform/mock/ang/mockPublicForm.aff.html
ext/afform/mock/tests/phpunit/api/v4/formatExamples/entity-security.php [new file with mode: 0644]