#963: revert changes in build_lists_controller

This commit is contained in:
Vokhmin Alexey V 2013-02-27 00:13:39 +04:00
parent 5b0c28c3e7
commit c8fa21eb56
1 changed files with 1 additions and 1 deletions

View File

@ -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')