diff options
Diffstat (limited to 'app/services/ci/build_cancel_service.rb')
-rw-r--r-- | app/services/ci/build_cancel_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/build_cancel_service.rb b/app/services/ci/build_cancel_service.rb index a23418ed738..834d4febd10 100644 --- a/app/services/ci/build_cancel_service.rb +++ b/app/services/ci/build_cancel_service.rb @@ -21,7 +21,7 @@ module Ci attr_reader :build, :user def allowed? - user.can?(:update_build, build) + user.can?(:cancel_build, build) end def forbidden |