diff options
Diffstat (limited to 'lib/api/clusters/agents.rb')
-rw-r--r-- | lib/api/clusters/agents.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/clusters/agents.rb b/lib/api/clusters/agents.rb index 62d4fb009c6..02469fbad21 100644 --- a/lib/api/clusters/agents.rb +++ b/lib/api/clusters/agents.rb @@ -7,7 +7,7 @@ module API before { authenticate! } - feature_category :kubernetes_management + feature_category :deployment_management urgency :low params do @@ -23,7 +23,7 @@ module API use :pagination end get ':id/cluster_agents' do - not_found!('ClusterAgents') unless can?(current_user, :read_cluster, user_project) + not_found!('ClusterAgents') unless can?(current_user, :read_cluster_agent, user_project) agents = ::Clusters::AgentsFinder.new(user_project, current_user).execute |