debian-mirror-gitlab/app/controllers/projects/terraform_controller.rb

18 lines
373 B
Ruby
Raw Normal View History

2021-01-29 00:20:46 +05:30
# frozen_string_literal: true
class Projects::TerraformController < Projects::ApplicationController
before_action :authorize_can_read_terraform_state!
feature_category :infrastructure_as_code
2022-07-16 23:28:13 +05:30
urgency :low
2021-01-29 00:20:46 +05:30
def index
end
private
def authorize_can_read_terraform_state!
access_denied! unless can?(current_user, :read_terraform_state, project)
end
end