class Conjur::Policy::Executor::Deny

Deny a privilege with a POST request to the deny url of the resource, with the privilege and role as parameters.

Public Instance Methods

execute() click to toggle source
# File lib/conjur/policy/executor/deny.rb, line 5
def execute
  action({
    'method' => 'post',
    'path' => "#{resource_path(statement.resource)}?deny",
    'parameters' => { "privilege" => statement.privilege, "role" => statement.role.roleid }
  })
end