Skip to main content

forget_actor

Function forget_actor 

Source
pub async fn forget_actor(
    cx: &Cx,
    ex: &mut dyn Executor,
    user_id: &str,
) -> Result<()>
Expand description

Keeps what the user user_id did, but no longer who did it, for an account being erased: each entry they acted in names a deleted user, the tablo-audit-deleted-user message, in their place, and each auth entry done to their account, a sign-in or an impersonation of them, no longer holds their name. The entries’ events, records and fields stay, as does the account’s id, which names no one once the account is gone. A refused sign-in names no account and keeps the login it typed until prune deletes it. Run it through the transaction that deletes the account.

§Errors

The driver’s failure when the rows cannot be read or written.