# Function permissions::safety::validate_newcomer_restrictions

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

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

```rust
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](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/permissions/safety/fn.validate_newcomer_restrictions.html)
