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

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

class Projects::GoogleCloudController < Projects::ApplicationController
  before_action :authorize_can_manage_google_cloud_deployments!

  feature_category :release_orchestration

  def index
  end

  private

  def authorize_can_manage_google_cloud_deployments!
    access_denied! unless can?(current_user, :manage_project_google_cloud, project)
  end
end