Sha256: 269006beab579bfa5a4f61d34e65e90e6bb5171f8fbd00947a877c8cf48f5f1b
Contents?: true
Size: 439 Bytes
Versions: 1
Compression:
Stored size: 439 Bytes
Contents
module CanTango module PermissionEngine module Selector class Roles < Base attr_reader :roles def initialize subject @roles = subject.roles_list end # TODO: Add roles filter def valid? permission valid_roles.include?(permission.to_sym) end def valid_roles roles - CanTango.config.roles.excluded end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.0 | lib/cantango/permission_engine/selector/roles.rb |