is_value_allowed
Utility function which returns whether a value is allowed by a certain allowlist
. This means the allowlist
is either set to allow all values, or the value is specified in the list of allowed values.
Parameters
value
the value to check
allowlist
the allowlist