Class: HrLite::RoleGrant
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- HrLite::RoleGrant
- Defined in:
- app/models/hr_lite/role_grant.rb
Overview
One (role, permission, scope) triple. The permission key is validated against the declared registry, so a typo is a refused write rather than a grant that silently never matches anything.
Instance Method Summary collapse
Instance Method Details
#covers?(needed_scope) ⇒ Boolean
13 |
# File 'app/models/hr_lite/role_grant.rb', line 13 def covers?(needed_scope) = Permissions.scope_covers?(scope, needed_scope) |