Module: ForemanGitTemplates::ApplicationHelper::Overrides

Defined in:
app/helpers/foreman_git_templates/application_helper.rb

Instance Method Summary collapse

Instance Method Details



8
9
10
11
12
13
14
15
16
# File 'app/helpers/foreman_git_templates/application_helper.rb', line 8

def display_link_if_authorized(name, options = {}, html_options = {})
  # rubocop:disable Rails/HelperInstanceVariable

  return if @host&.repository_path && options[:use_route] == 'edit_provisioning_template'

  # rubocop:enable Rails/HelperInstanceVariable

  super
end