Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disabling a flag also dis-allowlists all
I actually think the previous approach makes more sense, but it wasn't the behaviour that we intended - the allowlists were intended to be a restriction on the `enabled: true` property (i.e. clearing the allowlist enabled it for everyone), rather than a loosening of `enabled: false`. This is also why we have the `ignoreAllowlist` option, to allow the use of feature flags on public pages where we do not have a specific user. We might still want to consciously choose the previous behaviour (yes please!), but then we should replace the `ignoreAllowlist` option by a `disableAllowlist` option that only removes the ability to expose the flag to specific users.
- Loading branch information