'Returns whether this user has permission to modify target_user'

def can_admin_user(self, target_user):

    if (target_user.bot_owner == self):
        return True
    elif (self.is_realm_admin and (self.realm == target_user.realm)):
        return True
    else:
        return False
