Class: Caboose::RoleHandler
- Inherits:
-
AccessHandler
- Object
- AccessHandler
- Caboose::RoleHandler
- Defined in:
- lib/acl_system2/caboose/role_handler.rb
Instance Method Summary collapse
Methods included from LogicParser
Instance Method Details
#check(key, context) ⇒ Object
14 15 16 |
# File 'lib/acl_system2/caboose/role_handler.rb', line 14 def check(key, context) context[:user].roles.map{ |role| role.title.downcase}.include? key.downcase end |