class Athena::Security::Authorization::Strategy::Unanimous
inherits Reference
#
Grants the access if no voter denies it, and at least one grants it.
If all voters abstained, the decision is allow_if_all_abstain_decisions.
Included modules
Athena::Security::Authorization::Strategy::Interface
Constructors#
Methods#
#decide(results : Iterator(ASEC::Authorization::Voter::Access), access_decision : ASEC::Authorization::AccessDecision | Nil = nil) : Bool#
Returns true if the access is granted based on the provided results, otherwise false.
The results are lazy: each voter only votes once its result is read, so a strategy can stop reading them as soon as its decision is known.