Welcome to mirror list, hosted at ThFree Co, Russian Federation.

terraform_controller.rb « projects « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aef163c98c57e279cd9181d9d6fae4cf97b1753b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class Projects::TerraformController < Projects::ApplicationController
  before_action :authorize_can_read_terraform_state!

  feature_category :infrastructure_as_code

  def index
  end

  private

  def authorize_can_read_terraform_state!
    access_denied! unless can?(current_user, :read_terraform_state, project)
  end
end