Skip to content

class Athena::Security::Authorization::AccessDecision
inherits Reference #

Holds an access decision, along with the votes it was based on.

Methods#

#granted=(granted : Bool)#

Whether the access was granted.

View source

#granted? : Bool#

Whether the access was granted.

View source

#message : String#

Returns a message explaining the decision, made of the reasons of the votes that agree with it.

View source

#strategy : String | ::Nil#

The name of the strategy that made the decision.

View source

#strategy=(strategy : String | Nil)#

The name of the strategy that made the decision.

View source

#votes : Array(ASEC::Authorization::Voter::Vote)#

The votes the decision was based on.

View source