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
298 def permissions_policy
299   policy = @_response.permissions_policy
300   yield policy if defined?(yield)
301   policy
302 end