]> andersk Git - moira.git/blobdiff - server/queries2.c
*** empty log message ***
[moira.git] / server / queries2.c
index da690621f653637c4ba0a4081fe39a6d614b273c..3c9baadd7a462b0e04e3593c7444fa27ed0f418b 100644 (file)
@@ -25,6 +25,7 @@ int access_service();
 int access_filesys();
 int access_host();
 int access_ahal();
+int access_snt();
 
 /* Query Setup Routines */
 int prefetch_value();
@@ -895,7 +896,7 @@ static struct validate ghal_validate = {
   0,
   0,
   0,
-  0,
+  access_ahal,
   0,
   0,
 };
@@ -954,7 +955,7 @@ static struct validate gsnt_validate = {
   0,
   0,
   0,
-  0,
+  access_snt,
   0,
   followup_gsnt,
 };
@@ -975,8 +976,8 @@ static struct validate asnt_validate =
     asnt_valobj,
     4,
     NAME,
-    "name = uppercase(LEFT('%s',SIZE(name))) OR description = '__'+'%s' OR saddr = '%s'",
-    3,
+    "name = uppercase(LEFT('%s',SIZE(name)))",
+    1,
     SNET_ID,
     0,
     prefetch_value,
@@ -1001,8 +1002,8 @@ static struct validate usnt_validate =
     usnt_valobj,
     5,
     NAME,
-    "snet_id = %d OR description = '__'+'%s' OR description = '__'+'%s' OR saddr = '%s'",
-    4,
+    "snet_id = %d",
+    1,
     SNET_ID,
     0,
     0,
This page took 0.08222 seconds and 4 git commands to generate.