Skip to main content

require_local_user

Function require_local_user 

Source
pub(super) async fn require_local_user(
    services: &State,
    user_id: &UserId,
) -> Result<()>
Expand description

Reject a non-local user with 400 and an absent one with 404, mirroring Synapse’s device servlets.