Sha256: a70ced18a74ddb59b883b19395b64f3e5ebb2789d42de56c99d8e1ed07e4c40c
Contents?: true
Size: 406 Bytes
Versions: 10
Compression:
Stored size: 406 Bytes
Contents
# Create feature for Smart Proxy Feature.find_or_create_by_name('Salt') # Add new viewing permissions to Viewer role viewer = Role.find_by_name('Viewer') if viewer Permission.where(:name => [:view_smart_proxies_salt_keys, :view_smart_proxies_salt_autosign, :view_salt_modules]).each do |permission| viewer.add_permissions!([permission.name]) unless viewer.permissions.include? permission end end
Version data entries
10 entries across 10 versions & 1 rubygems