diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-12 13:19:39 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-12 13:57:13 +0300 |
commit | 7fc6b5b6ff23e2faba7f06a1362ada31f6f3436a (patch) | |
tree | 5d25037f5572c9771033b09a6b806ba2669adf02 /app/policies/ci | |
parent | 6c6bc400d1d8a96f6e443788cd0b2c14addd88e3 (diff) |
Do not inherit build policy in pipeline policy
Diffstat (limited to 'app/policies/ci')
-rw-r--r-- | app/policies/ci/pipeline_policy.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/policies/ci/pipeline_policy.rb b/app/policies/ci/pipeline_policy.rb index 3d2eef1c50c..10aa2d3e72a 100644 --- a/app/policies/ci/pipeline_policy.rb +++ b/app/policies/ci/pipeline_policy.rb @@ -1,4 +1,7 @@ module Ci - class PipelinePolicy < BuildPolicy + class PipelinePolicy < BasePolicy + def rules + delegate! @subject.project + end end end |