Module: Conjur::Policy::Executor::ActingAs
- Included in:
- CreateResource, CreateRole
- Defined in:
- lib/conjur/policy/executor/create.rb
Overview
When creating a raw Role or Resource, the owner of the new record is specified by the acting_as
parameter.
Instance Method Summary collapse
Instance Method Details
#acting_as_parameters ⇒ Object
75 76 77 78 79 |
# File 'lib/conjur/policy/executor/create.rb', line 75 def acting_as_parameters {}.tap do |params| params["acting_as"] = record.owner.roleid if record.owner end end |