From 73c9d80bdcc24ab178fa2a38eb822232b4c2be34 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Tue, 16 Feb 2016 13:06:52 +0100 Subject: Record user that erased a build through API --- lib/api/builds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/api/builds.rb') 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 -- cgit v1.2.1