def check_acl (self):

        '''
            Check Access Control List

            Check if the ACL features are enbaled for this bot.
            If it is, ensure that the message was received
            from someone that is either the bot owner or
            a user.

            --
            @return bool
        '''

        # Read the configuration file. We do this here as the
        # acls may have changed since the last time this
        # module was loaded
        config.read(
            os.path.join(os.path.dirname(__file__), '../settings.ini'))

        message_from_id = str(self.response['from']['id'])

        # Check if ACL processing is enabled
        if not config.getboolean('acl', 'enabled'):
            return True

        if config.get('acl', 'owners').split(',') not in message_from_id \
                and message_from_id not in config.get('acl', 'users').split(','):
            logger.error('{first_name} ({id}) is not allowed to use this bot'.format(
                first_name = self.response['from']['first_name'],
                id = message_from_id
            ))
            return False

        return True
dataset/ETHPy150Open leonjza/hogar/hogar/ResponseHandler.py/Response.check_acl/swapped operands of `not in`