debian-mirror-gitlab/app/policies/clusters/instance_policy.rb

15 lines
299 B
Ruby
Raw Normal View History

2019-12-16 22:33:55 +05:30
# frozen_string_literal: true
module Clusters
class InstancePolicy < BasePolicy
rule { admin }.policy do
enable :read_cluster
enable :add_cluster
enable :create_cluster
enable :update_cluster
enable :admin_cluster
enable :read_prometheus
end
end
end