Open ebruchez opened 10 years ago
Completely change to match the structure of the XML, which is more flexible:
A constraint on a field value translates in the same constraint used right now by the summary page when doing a search on a field.
extractValue()
, as we already do right now for the search API. (In the future, we can imagine storing the values we want to search on in separate columns; also see #1571.)With #649 implemented, performance should not be an issue, as long as the index includes values on which permissions depend.
If permissions are defined in the form definition itself, this is easy to figure out, but if permissions are defined and changed via properties, a reindex might be needed, OR the permissions will not work.
The syntax for #1860 will also need to support checking on values.
Use case: permissions based on workflow state (but can also be any data).
This should also enable handling Form Builder permissions without custom logic (but still using
form-builder-permissions.xml
for backward compatibility), except some FB-specific UI aspects.Extension: standard way of storing
workflow-state
,workflow-id
.