From c8fa21eb56a76706b09d9d71f21fb7f9b2ec154d Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Wed, 27 Feb 2013 00:13:39 +0400 Subject: [PATCH] #963: revert changes in build_lists_controller --- app/controllers/projects/build_lists_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/projects/build_lists_controller.rb b/app/controllers/projects/build_lists_controller.rb index 4f811856b..9df8fd43d 100644 --- a/app/controllers/projects/build_lists_controller.rb +++ b/app/controllers/projects/build_lists_controller.rb @@ -173,7 +173,7 @@ class Projects::BuildListsController < Projects::BaseController end - if @build_list.save && @build_list.now_publish + if @build_list.save && @build_list.can_publish? && @build_list.now_publish redirect_to :back, :notice => t('layout.build_lists.publish_success') else redirect_to :back, :notice => t('layout.build_lists.publish_fail')