Class: Zuul::ActionController::Evaluators::ForRoleOrHigher
- Inherits:
-
ForTarget
- Object
- ForTarget
- Zuul::ActionController::Evaluators::ForRoleOrHigher
show all
- Defined in:
- lib/zuul/action_controller/evaluators.rb
Instance Method Summary
collapse
Methods inherited from ForTarget
#else, #else_for, #for_target
Instance Method Details
#match? ⇒ Boolean
48
49
50
|
# File 'lib/zuul/action_controller/evaluators.rb', line 48
def match?
(@dsl.subject.nil? && @target == @dsl.logged_out) || (!@dsl.subject.nil? && (@target == @dsl.logged_in || @dsl.subject.has_role_or_higher?(@target, @context, @force_context)))
end
|