Skip to main content

set_user_quota

Function set_user_quota 

Source
pub async fn set_user_quota(
    pool: &PgPool,
    actor: &Actor,
    user_id: Uuid,
    limit: Option<i64>,
) -> AppResult<()>
Expand description

Sets (or with None removes) the storage quota of a user. Admins only; stored versions are never removed – a user over the new limit just cannot store more.