def is_users_personal_account(context, account):
    """
    Return `true` if the current path is for the user's personal account.

    Used to determine which items to show in the settings submenu.
    """
    request = context["request"]
    return account.is_personal and (
        request.path.startswith("/me/")
        or request.user.is_authenticated
        and request.path.startswith(f"/{request.user.username}/")
    )