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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
400 B
Ruby
Raw Permalink 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
2023-05-27 22:25:52 +05:30
enable :use_k8s_proxies
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')