Skip to content

module Athena::Security::Authorization::Voter::AttributeOnly #

Implemented by voters that vote on attributes alone, whatever the subject, e.g. ASEC::Authorization::Voter::Role.

Direct including types

Athena::Security::Authorization::Voter::Authenticated Athena::Security::Authorization::Voter::Role

Methods#

abstract #vote(token : ASEC::Authentication::Token::Interface, 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.

The vote may be explained by adding reasons to the provided vote.

View source