def _check_permissions(self, msg):
        allowed = permissions.get(config.controller['permissions_path'])
        perms = permissions.check(allowed,
                                  self.sender,
                                  msg['collection'],
                                  msg['id'])

        if perms not in self.body['action']:
            raise ValueError("You don't have permission to do that.")
dataset/ETHPy150Open comodit/synapse-agent/synapse/task.py/Task._check_permissions/swapped operands of `not in`