# Function permissions::safety::lockdown_enable

> `moderation.lockdown.enable` (also renewal and replacement): duration within 60 s – 7 days and H3 on the new lockdown's mask (only the owner exempt). Enabling while one is active r

`zaun_community_protocol::permissions::safety::lockdown_enable` · Function

```rust
pub fn lockdown_enable(actor: &Party, held: Permissions, restrictions: LockdownRestrictions, newcomer_restrictions: Permissions, expires_in_ms: u64, active: Option<ActiveLockdown>) -> Result<(), Refusal>
```

`moderation.lockdown.enable` (also renewal and replacement): duration within 60 s – 7 days
and H3 on the new lockdown's mask (only the owner exempt). Enabling while one is active
replaces it, so the actor must also pass `lockdown_disable` for the active one: a lower
moderator cannot swap a higher one's lockdown.

`held` is the actor's community permissions **before the lockdown step**
(`Resolved::before_lockdown` of `cp`): timeout and
probation still apply, but a lockdown never prevents its own management.

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/permissions/safety/fn.lockdown_enable.html)
