Class: ACLSystem2::RoleHandler

Inherits:
AccessHandler show all
Defined in:
lib/acl_system2/role_handler.rb

Instance Method Summary collapse

Methods included from LogicParser

#process

Instance Method Details

#check(key, context) ⇒ Object



7
8
9
# File 'lib/acl_system2/role_handler.rb', line 7

def check(key, context)  
  context[:user].roles.map{ |role| role.title.downcase}.include? key.downcase
end