summaryrefslogtreecommitdiff
path: root/app/models/ci/pipeline_schedule.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-07-05 21:55:35 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-07-05 21:55:35 +0800
commit56ea7a0cfe0fcdff33de80fd4602f463367914b2 (patch)
treee855a39393bbae6546c2164681f8e851c72f4fa7 /app/models/ci/pipeline_schedule.rb
parentd89277c3579b245a6d7c220d8007ae35a990b1da (diff)
downloadgitlab-ce-56ea7a0cfe0fcdff33de80fd4602f463367914b2.tar.gz
Merge allowed_to_create? into CreatePipelineService
Diffstat (limited to 'app/models/ci/pipeline_schedule.rb')
-rw-r--r--app/models/ci/pipeline_schedule.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/ci/pipeline_schedule.rb b/app/models/ci/pipeline_schedule.rb
index eaca2774bf9..49455e79c15 100644
--- a/app/models/ci/pipeline_schedule.rb
+++ b/app/models/ci/pipeline_schedule.rb
@@ -36,10 +36,6 @@ module Ci
update_attribute(:active, false)
end
- def runnable_by_owner?
- Ci::Pipeline.allowed_to_create?(owner, project, ref)
- end
-
def set_next_run_at
self.next_run_at = Gitlab::Ci::CronParser.new(cron, cron_timezone).next_time_from(Time.now)
end