Class: Reeve::Invocation::NullAuthorizer
- Inherits:
-
Object
- Object
- Reeve::Invocation::NullAuthorizer
- Defined in:
- lib/reeve/invocation.rb
Overview
No policy adapter wired in: nothing can be evaluated, so nothing is permitted.
Instance Method Summary collapse
Instance Method Details
#authorize(context:, guard:) ⇒ Object
25 26 27 |
# File 'lib/reeve/invocation.rb', line 25 def (context:, guard:) Decision.deny(rule: Decision::POLICY_ERROR, detail: "no policy adapter is configured") end |