gitlab-org--gitlab-foss/app/policies/clusters/cluster_policy.rb

13 lines
241 B
Ruby
Raw Normal View History

2017-10-23 04:36:35 -04:00
module Clusters
class ClusterPolicy < BasePolicy
alias_method :cluster, :subject
2017-10-23 04:36:35 -04:00
delegate { cluster.project }
rule { can?(:master_access) }.policy do
enable :update_cluster
enable :admin_cluster
end
end
end