src/hg/lib/validateGisaid.c 1.1

1.1 2009/06/26 14:37:42 fanhsu
Dummy/empty validateGisaidUser() for non-GISAID servers. The real validateGisaidUser() for GISAID server is confidential and is kept elsewhere.
Index: src/hg/lib/validateGisaid.c
===================================================================
RCS file: src/hg/lib/validateGisaid.c
diff -N src/hg/lib/validateGisaid.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ src/hg/lib/validateGisaid.c	26 Jun 2009 14:37:42 -0000	1.1
@@ -0,0 +1,18 @@
+/* This is a dummy function for non-GISAID server */
+#include "common.h"
+
+#include "hCommon.h"
+
+boolean validateGisaidUser()
+{
+if (hIsGisaidServer())
+    {
+    /* The real implementation has confidential logic, which could not be exposed */
+    errAbort("The correct validateGisaidUser() implementation is not installed on this GISAID server.");
+    return FALSE;
+    }
+else
+    {
+    return TRUE;
+    }
+}