Module: RoleAble
- Defined in:
- lib/app/models/concerns/role_able.rb
Overview
Constants for a role
Constant Summary collapse
- ROLE_NONE =
'none'
- ROLE_VIEW =
'view'
- ROLE_EDIT =
'edit'
- ROLE_ADMIN =
'admin'
- ROLE_SUPER_ADMIN =
'super_admin'
- ALL_ROLES =
[ROLE_NONE, ROLE_VIEW, ROLE_EDIT, ROLE_ADMIN].freeze
- ALL_SUPER_ROLES =
[ROLE_NONE, ROLE_VIEW, ROLE_EDIT, ROLE_ADMIN, ROLE_SUPER_ADMIN].freeze
- ALL_BUT_NONE_ROLES =
[ROLE_VIEW, ROLE_EDIT, ROLE_ADMIN].freeze
- ADMIN_EDIT_ROLES =
[ROLE_EDIT, ROLE_ADMIN].freeze