class ForemanTasks::Dynflow::SidekiqConsoleConstraint

Public Instance Methods

matches?(request) click to toggle source
# File lib/foreman_tasks/dynflow/console_authorizer.rb, line 3
def matches?(request)
  Setting[:dynflow_enable_console] &&
    (!Setting[:dynflow_console_require_auth] || Dynflow::ConsoleAuthorizer.new(request).allow?)
end