Class: ACLSystem2::RoleHandler
- Inherits:
-
AccessHandler
- Object
- AccessHandler
- ACLSystem2::RoleHandler
- Defined in:
- lib/acl_system2/role_handler.rb
Instance Method Summary collapse
Methods included from LogicParser
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 |