Class: LogicalAuthz::AccessControl::SubPolicy
- Defined in:
- lib/logical_authz/access_control.rb
Instance Attribute Summary
Attributes inherited from Policy
Instance Method Summary collapse
- #check(criteria) ⇒ Object
-
#initialize(helper_mod, &block) ⇒ SubPolicy
constructor
A new instance of SubPolicy.
Methods inherited from Policy
#default_name, #evaluate, #laz_debug, names, register
Constructor Details
Instance Method Details
#check(criteria) ⇒ Object
229 230 231 232 233 234 235 236 |
# File 'lib/logical_authz/access_control.rb', line 229 def check(criteria) @criteria_list.each do |control| policy = control.evaluate(criteria) next if policy.nil? return match_policy(policy) end return false end |