lib/authorized_persona/authorization.rb
# Configure authorization for an authorized persona class
Configure authorization for an authorized persona class
Configure authorization for an authorized persona class
def authorized_tier(action:)
        action = action.to_sym
        authorization_persona.authorization_tier_names.each do |tier|
          actions = authorized_actions[tier] || []
          return tier if actions == [:all] || actions.include?(action)
        end
        raise AuthorizedPersona::Error, "missing authorization grant for #{name}##{action}"
      end
def authorized_tier ( action : ) action = action . to_sym authorization_persona . authorization_tier_names . each do | tier | actions = authorized_actions [ tier ] || [ ] return tier if actions == [ :all ] || actions . include? ( action ) end raise AuthorizedPersona :: Error , "missing authorization grant for #{name}##{action}" end
Configure authorization for an authorized persona class
Configure authorization for an authorized persona class
action
<not_specific>