is_strategy_active

function is_strategy_active(rule: rule, strategy: text): boolean(source)

Utility function which returns whether a rule allows a certain registration strategy.

Parameters

rule

the rule to check

strategy

the name of the strategy to check