Sha256: b6895b1eb45423d6f29c67fa0a42ad8ed987a8131f1354b81112b836c6da5141
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
# frozen_string_literal: true module ForemanSnapshotManagement module HostsHelper def snapshot_multiple_actions return [] unless can_create_snapshots? [{ action: [_('Create Snapshot'), select_multiple_host_snapshots_path], priority: 1000 }] end private def can_create_snapshots? User.current.can?(:create_snapshots) end end end
Version data entries
3 entries across 3 versions & 1 rubygems