# Function permissions::overrides::adopt_parent

> Setting `sync_with_parent = true`: checked as an override edit from the channel's own overrides to the parent's, for every target in either. `subject` maps a target to its hierarch

`zaun_community_protocol::permissions::overrides::adopt_parent` · Function

```rust
pub fn adopt_parent<impl Fn(&OverrideTarget) -> Option<OverrideSubject>>(actor: &Party, chp: Permissions, own: &[Override], parent: &[Override], subject: impl Fn(&OverrideTarget) -> Option<OverrideSubject>) -> Result<(), Refusal>
```

Setting `sync_with_parent = true`: checked as an override edit from the channel's
own overrides to the parent's, for every target in either. `subject` maps a target to
its hierarchy view; `None` (a deleted role or member) is skipped.

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/permissions/overrides/fn.adopt_parent.html)
