Expand description
Override validation and override-edit checks (permissions §1.2, §2.2, §2.4, §4.4).
Enums§
- Override
Subject - The target of an override as the hierarchy sees it.
- Override
Write - What the host does with a validated override.
Functions§
- adopt_
parent - 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.subjectmaps a target to its hierarchy view;None(a deleted role or member) is skipped. - override_
edit - One override edit in
channel.permissions.update(orchannel.createwith initial overrides).chpis the actor’s effective permissions in that channel;old/neware(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 inchp(owner and administrator exempt). - validate_
override - Validates a new override value against the stored one (
old, if any):allow & deny == 0; no known bit outsideCHANNEL_SCOPED; no unknown bit thatolddid not already hold. Unknown bits already present pass through unchanged.