lib/foreman_tasks/dynflow.rb in foreman-tasks-0.5.2 vs lib/foreman_tasks/dynflow.rb in foreman-tasks-0.5.3
- old
+ new
@@ -79,11 +79,12 @@
end
def web_console
::Dynflow::WebConsole.setup do
before do
- # TODO: propper authentication
- User.current = User.first
+ if !Setting[:dynflow_enable_console]
+ redirect('dashboard')
+ end
end
set(:world) { ForemanTasks.dynflow.world }
end
end