Skip to main content

is_user_allowed

Function is_user_allowed 

Source
pub fn is_user_allowed(allowed: &[String], user: &str, mode: Match) -> bool
Expand description

Return true when user is allowed under allowed.

Single source of truth for the per-channel is_user_allowed checks. Callers spell their channel’s case-sensitivity by passing the matching Match variant; the helper handles the wildcard, empty, and per-entry comparisons identically across every channel.