denyListStrategy

Configures a DenyListStrategy for this feature.

Users whose ID is in the deny list will have the feature disabled; all other users will have it enabled. Requires userId to be set in the com.yonatankarp.ff4k.core.FlippingExecutionContext.

Example

feature("new-ui") {
denyListStrategy {
+"problematic-user-1"
+"problematic-user-2"
}
}

Author

Yonatan Karp-Rudin

Parameters

block

A DSL block to configure the list of denied user IDs.

See also

for the inverse behavior