2019-07-31 22:56:46 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Clusters
|
|
|
|
class InstancePolicy < BasePolicy
|
2019-09-30 21:07:59 +05:30
|
|
|
rule { admin }.policy do
|
2019-07-31 22:56:46 +05:30
|
|
|
enable :read_cluster
|
|
|
|
enable :add_cluster
|
|
|
|
enable :create_cluster
|
|
|
|
enable :update_cluster
|
|
|
|
enable :admin_cluster
|
2019-12-04 20:38:33 +05:30
|
|
|
enable :read_prometheus
|
2019-07-31 22:56:46 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-12-21 20:55:43 +05:30
|
|
|
|
|
|
|
Clusters::InstancePolicy.prepend_if_ee('EE::Clusters::InstancePolicy')
|