Skip to main content

adopt_parent

Function adopt_parent 

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

Setting sync_with_parent = true (§2.4): 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.