def METHOD_NAME(self, logged_in_member: TapirUser, other_member: ShareOwner):
    if logged_in_member.share_owner == other_member or logged_in_member.has_perm(
        PERMISSION_ACCOUNTING_VIEW
    ):
        other_member = other_member.get_info()
        return UserUtils.build_html_link_for_viewer(other_member, logged_in_member)
    return _("Other member")