summaryrefslogtreecommitdiff
path: root/app/models/ci
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-11-07 02:47:05 +0900
committerShinya Maeda <shinya@gitlab.com>2017-11-07 02:47:05 +0900
commitafef38533727cf32a7be324243a25b4db5eb5498 (patch)
treecfdd2c96bd0c1a7ee1fd85f0b63fd2edf0d1fe3f /app/models/ci
parentcb5e35d562a1bf0737c1ad3316c3723775fada01 (diff)
downloadgitlab-ce-afef38533727cf32a7be324243a25b4db5eb5498.tar.gz
Add doc. Fix spec. Add erase_build in protected_ref rule
Diffstat (limited to 'app/models/ci')
-rw-r--r--app/models/ci/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 0d992c4c01f..1b2b0d17910 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -192,7 +192,7 @@ module Ci
project.build_timeout
end
- def owned_by?(current_user)
+ def triggered_by?(current_user)
user == current_user
end