gitlab-org--gitlab-foss/app/policies/clusters/agent_token_policy.rb

9 lines
159 B
Ruby

# frozen_string_literal: true
module Clusters
class AgentTokenPolicy < BasePolicy
alias_method :token, :subject
delegate { token.agent }
end
end