diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-08-31 11:01:43 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-09-03 17:49:10 +0300 |
commit | d3bf01608013eac24764c1dacd51f8b841dd9bf1 (patch) | |
tree | 34a3aee86168c0ae4c017de39bf8918dc7bfafbf /app | |
parent | a2cde2847c68e8061f6f40f106502fa164be7b02 (diff) |
Remove access_level index from runner. Add protected on ci_pipelines. Add protected index on ci_builds.
Diffstat (limited to 'app')
-rw-r--r-- | app/services/ci/create_pipeline_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/ci/create_pipeline_service.rb b/app/services/ci/create_pipeline_service.rb index de2cd7e87be..414c01b2546 100644 --- a/app/services/ci/create_pipeline_service.rb +++ b/app/services/ci/create_pipeline_service.rb @@ -12,7 +12,8 @@ module Ci tag: tag?, trigger_requests: Array(trigger_request), user: current_user, - pipeline_schedule: schedule + pipeline_schedule: schedule, + protected: project.protected_for?(ref) ) result = validate(current_user, |