Skip to main content

check_user_matches

Function check_user_matches 

Source
pub fn check_user_matches(
    user1: &UserId,
    user2: &UserId,
) -> Result<(), AccountActionNotAuthorized>
Expand description

Returns a [ErrorKind::Forbidden] error response (with HTTP status 403 - Forbidden) if the two given user IDs differ.