-/* $Id: database.c,v 1.9 2007-04-11 02:14:15 quinn Exp $
+/* $Id: database.c,v 1.10 2007-04-11 04:33:41 quinn Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
int database_match_criteria(struct setting **settings, struct database_criterion *cl)
{
+ if (settings[PZ_ALLOW] && *settings[PZ_ALLOW]->value == '0')
+ return 0;
for (; cl; cl = cl->next)
if (!match_criterion(settings, cl))
break;