module Roda::RodaPlugins::PermissionsPolicy::ResponseMethods
def initialize
def initialize super @permissions_policy &&= nil end
def permissions_policy
def permissions_policy @permissions_policy ||= roda_class.opts[:permissions_policy].dup end
def set_default_headers
def set_default_headers super unless @skip_permissions_policy (@permissions_policy || roda_class.opts[:permissions_policy]).set_header(headers) end end
def skip_permissions_policy!
def skip_permissions_policy! @skip_permissions_policy = true end