#963: revert changes in build_lists_controller
This commit is contained in:
parent
5b0c28c3e7
commit
c8fa21eb56
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue