gitlab-org--gitlab-foss/app/policies/gcp/cluster_policy.rb
2017-10-04 00:20:47 +02:00

12 lines
237 B
Ruby

module Gcp
class ClusterPolicy < BasePolicy
alias_method :cluster, :subject
delegate { @subject.project }
rule { can?(:master_access) }.policy do
enable :update_cluster
enable :admin_cluster
end
end
end