Function wicrs_server::api::unban_user[][src]

pub async fn unban_user(actor_id: &str, hub_id: ID, user_id: &str) -> Result<()>
Expand description

Unbans a user from a hub.

Arguments

  • actor_id - ID of the user who is unbanning.
  • hub_id - Hub from which the user is being unbanned.
  • user_id - ID of the user who is to be unbanned.

Errors

This function may fail for any of the following reasons:

  • The user performing the unban is not in the hub
  • The hub could not be loaded for any of the reasons outlined by Hub::load.
  • The user doing the unban does not have permission to unban other users.
  • The unban failed for any of the reasons outlined by Hub::unban_user.