diff options
Diffstat (limited to 'app/models/clusters/agents/project_authorization.rb')
-rw-r--r-- | app/models/clusters/agents/project_authorization.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/clusters/agents/project_authorization.rb b/app/models/clusters/agents/project_authorization.rb index 1c71a0a432a..f6d19086751 100644 --- a/app/models/clusters/agents/project_authorization.rb +++ b/app/models/clusters/agents/project_authorization.rb @@ -9,6 +9,10 @@ module Clusters belongs_to :project, class_name: '::Project', optional: false validates :config, json_schema: { filename: 'cluster_agent_authorization_configuration' } + + def config_project + agent.project + end end end end |