Class: ForemanTasks::Dynflow::SidekiqConsoleConstraint
- Inherits:
-
Object
- Object
- ForemanTasks::Dynflow::SidekiqConsoleConstraint
- Defined in:
- lib/foreman_tasks/dynflow/console_authorizer.rb
Instance Method Summary collapse
Instance Method Details
#matches?(request) ⇒ Boolean
3 4 5 6 |
# 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 |