Checks a permission-claims value at the write: a JSON object whose keys
are permissions the application exposes and whose values are lists of
catalogue attribute names.
Parameters
value: unknown
the JSON text ('' clears it and is always acceptable)
exposed: string[]
the names of the permissions the application exposes
Returns string
'' when acceptable, the refusal sentence otherwise
Checks a permission-claims value at the write: a JSON object whose keys are permissions the application exposes and whose values are lists of catalogue attribute names.