ref: master
app/helpers/role_helper.rb
1 2 3 4 5 6 7
module RoleHelper def role_available_permissions(role) role.kind == "Environment" ? ['Environment', 'Profile'] : [role.kind] end end