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

cluster_policy.rb « clusters « policies « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b5b24491655f9b9f966c317b1111ec16d019e00f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Clusters
  class ClusterPolicy < BasePolicy
    alias_method :cluster, :subject

    delegate { cluster.project }

    rule { can?(:maintainer_access) }.policy do
      enable :update_cluster
      enable :admin_cluster
    end
  end
end