diff options
Diffstat (limited to 'app/serializers/ci/job_entity.rb')
-rw-r--r-- | app/serializers/ci/job_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/ci/job_entity.rb b/app/serializers/ci/job_entity.rb index 813938c2a18..828a9eb33a5 100644 --- a/app/serializers/ci/job_entity.rb +++ b/app/serializers/ci/job_entity.rb @@ -53,7 +53,7 @@ module Ci alias_method :job, :object def cancelable? - job.cancelable? && can?(request.current_user, :update_build, job) + job.cancelable? && can?(request.current_user, :cancel_build, job) end def retryable? |