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 (@permissions_policy || roda_class.opts[:permissions_policy]).set_header(headers) end