summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-16 13:06:52 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-19 17:24:59 +0100
commit73c9d80bdcc24ab178fa2a38eb822232b4c2be34 (patch)
treefb25c6a001f16912809f3e62a2c68811586de675 /lib
parentfb62196f430a12e93ab3cf70b3182df130fef6fe (diff)
downloadgitlab-ce-73c9d80bdcc24ab178fa2a38eb822232b4c2be34.tar.gz
Record user that erased a build through API
Diffstat (limited to 'lib')
-rw-r--r--lib/api/builds.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/builds.rb b/lib/api/builds.rb
index b265fa148ba..c058128ae54 100644
--- a/lib/api/builds.rb
+++ b/lib/api/builds.rb
@@ -138,7 +138,7 @@ module API
return not_found!(build) unless build
return forbidden!('Build is not erasable!') unless build.erasable?
- build.erase
+ build.erase(erased_by: current_user)
present build, with: Entities::Build,
user_can_download_artifacts: can?(current_user, :download_build_artifacts, user_project)
end