17 lines
373 B
Ruby
17 lines
373 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Projects::TerraformController < Projects::ApplicationController
|
|
before_action :authorize_can_read_terraform_state!
|
|
|
|
feature_category :infrastructure_as_code
|
|
urgency :low
|
|
|
|
def index
|
|
end
|
|
|
|
private
|
|
|
|
def authorize_can_read_terraform_state!
|
|
access_denied! unless can?(current_user, :read_terraform_state, project)
|
|
end
|
|
end
|