projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01ea314
)
Implemented pz:allow (turn access to targets on or off)
author
Sebastian Hammer
<quinn@indexdata.com>
Wed, 11 Apr 2007 04:33:41 +0000
(
04:33
+0000)
committer
Sebastian Hammer
<quinn@indexdata.com>
Wed, 11 Apr 2007 04:33:41 +0000
(
04:33
+0000)
src/database.c
patch
|
blob
|
history
diff --git
a/src/database.c
b/src/database.c
index
214d3a0
..
639e8f2
100644
(file)
--- a/
src/database.c
+++ b/
src/database.c
@@
-1,4
+1,4
@@
-/* $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.
@@
-241,6
+241,8
@@
static int match_criterion(struct setting **settings, struct database_criterion
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;