module Athena::Security::Authorization::Voter::Subject(T)
#
Implemented by voters that vote on subjects of type T, see ASEC::Authorization::Voter.
The voter abstains unless it #supports? the attribute and subject, otherwise it grants the access if #vote_on_attribute returns true, and denies it if not.
Methods#
#vote(token : ASEC::Authentication::Token::Interface, subject : T, attribute : String, vote : ASEC::Authorization::Voter::Vote | Nil = nil) : ASEC::Authorization::Voter::Access#
Returns the vote of this voter on whether the provided token is granted the provided attribute on the provided subject.
The vote may be explained by adding reasons to the provided vote.