Skip to main content

override_edit

Function override_edit 

Source
pub fn override_edit(
    actor: &Party,
    chp: Permissions,
    subject: OverrideSubject,
    old: (Permissions, Permissions),
    new: (Permissions, Permissions),
) -> Result<(), Refusal>
Expand description

One override edit in channel.permissions.update (or channel.create with initial overrides). chp is the actor’s effective permissions in that channel; old/new are (allow, deny) with (0, 0) for none. A role target needs H4; a member target H1 and H2 unless self. H3: the changed bits must be in chp (owner and administrator exempt).