Class: LogicalAuthz::AccessControl::IfAllows

Inherits:
SubPolicy show all
Defined in:
lib/logical_authz/access_control.rb

Instance Attribute Summary

Attributes inherited from Policy

#decision, #name

Instance Method Summary collapse

Methods inherited from SubPolicy

#check, #initialize

Methods inherited from Policy

#check, #evaluate, #initialize, #laz_debug, names, register

Constructor Details

This class inherits a constructor from LogicalAuthz::AccessControl::SubPolicy

Instance Method Details

#default_nameObject



240
241
242
# File 'lib/logical_authz/access_control.rb', line 240

def default_name
  "If allowed by..."
end

#match_policy(policy) ⇒ Object



244
245
246
# File 'lib/logical_authz/access_control.rb', line 244

def match_policy(policy)
  policy == true
end