Flippant v0.4.1 Flippant.Rules View Source
The Rules module glues rules, actors, and groups are together.
Link to this section Summary
Functions
Check whether any rules are enabled for a particular actor. The function accepts a list of names/value pairs and an actor
Link to this section Functions
Link to this function
enabled_for_actor?(rules, actor, groups \\ nil)
View Source
enabled_for_actor?(list, any, Map.t) :: boolean
Check whether any rules are enabled for a particular actor. The function accepts a list of names/value pairs and an actor.
Example
Flippant.Rules.enabled_for_actor?(rules, actor, groups)
Without a third argument of the groups to be checked it falls back to collecting the globally registered groups.