Skip to main content

channel_grants

Function channel_grants 

Source
pub fn channel_grants(
    base: Permissions,
    member: MemberId,
    roles: &[Role],
    ch: &Channel<'_>,
) -> Permissions
Expand description

grants(m, ch) (steps 3–6) for a non-administrator whose base is base.

Overrides are aggregated per layer in one pass, so duplicate or reordered entries give the same result (property 1).