module Roda::RodaPlugins::PermissionsPolicy::ResponseMethods

  1. lib/roda/plugins/permissions_policy.rb

Methods

Public Class

  1. new

Public Instance

  1. permissions_policy

Public Class methods

new()

Unset any permissions policy when reinitializing

[show source]
    # File lib/roda/plugins/permissions_policy.rb
304 def initialize
305   super
306   @permissions_policy &&= nil
307 end

Public Instance methods

permissions_policy()

The current permissions policy to be used for this response.

[show source]
    # File lib/roda/plugins/permissions_policy.rb
310 def permissions_policy
311   @permissions_policy ||= roda_class.opts[:permissions_policy].dup
312 end