summaryrefslogtreecommitdiff
path: root/app/policies
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/ci/pipeline_policy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/ci/pipeline_policy.rb b/app/policies/ci/pipeline_policy.rb
index 73b5a40c7fc..8dba28b8d97 100644
--- a/app/policies/ci/pipeline_policy.rb
+++ b/app/policies/ci/pipeline_policy.rb
@@ -1,6 +1,6 @@
module Ci
class PipelinePolicy < BasePolicy
- delegate { pipeline.project }
+ delegate { @subject.project }
condition(:user_cannot_update) do
!::Gitlab::UserAccess