Class: Karafka::Web::Pro::Ui::Lib::Policies::Requests

Inherits:
Object
  • Object
show all
Defined in:
lib/karafka/web/pro/ui/lib/policies/requests.rb

Overview

Per request policies setup class. Allows for writing low level policies that can be used to block certain Web UI functionalities on the request level.

Instance Method Summary collapse

Instance Method Details

#allow?(_env) ⇒ Boolean

Note:

By default we do not limit anything in the Web UI, however particular granular policies may limit things on their own.

Returns should this request be allowed or not.

Parameters:

  • _env (Hash)

    rack env object that we can use to get request details

Returns:

  • (Boolean)

    should this request be allowed or not



27
28
29
# File 'lib/karafka/web/pro/ui/lib/policies/requests.rb', line 27

def allow?(_env)
  true
end