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
|