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
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|