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

17 lines
370 B
Ruby
Raw Normal View History

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
2021-06-08 01:23:25 +05:30
Clusters::InstancePolicy.prepend_mod_with('Clusters::InstancePolicy')