module Roda::RodaPlugins::PermissionsPolicy::InstanceMethods

  1. lib/roda/plugins/permissions_policy.rb

Methods

Public Instance

  1. permissions_policy

Public Instance methods

permissions_policy()

If a block is given, yield the current permission policy. Returns the current permissions policy.

[show source]
    # File lib/roda/plugins/permissions_policy.rb
295 def permissions_policy
296   policy = @_response.permissions_policy
297   yield policy if defined?(yield)
298   policy
299 end