The requireAll check was backwards.
authorScott Cantor <cantor.2@osu.edu>
Tue, 29 Mar 2005 04:37:22 +0000 (04:37 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 29 Mar 2005 04:37:22 +0000 (04:37 +0000)
shib-target/shib-target.cpp

index fbc2120..9f763bb 100644 (file)
@@ -462,12 +462,13 @@ ShibTarget::doCheckAuthZ(void)
         bool method_restricted=false;
         string remote_user = getRemoteUser();
 
-    #define CHECK_OK do { \
-      if (ht->requireAll) { \
-        return pair<bool,void*>(false, NULL); \
-      } \
-      auth_OK[x] = true; \
-      continue; \
+#define CHECK_OK \
+    do { \
+        if (!ht->requireAll) { \
+            return pair<bool,void*>(false, NULL); \
+        } \
+        auth_OK[x] = true; \
+        continue; \
     } while (0)
 
         for (int x = 0; x < ht->elements.size(); x++) {