Skip to content

Function permissions::safety::validate_newcomer_restrictions

zaun_community_protocol::permissions::safety::validate_newcomer_restrictions · Function

pub fn validate_newcomer_restrictions(old: Permissions, new: Permissions) -> Result<(), Invalid>

Validates a new newcomer_restrictions mask: no VIEW_CHANNEL or READ_MESSAGE_HISTORY, no newly set unknown bit.

Full rustdoc page