app/soc/views/helper/access.py
changeset 1488 4b7cec48e26c
parent 1486 c417a4188e73
child 1496 da531df1d92e
--- a/app/soc/views/helper/access.py	Tue Feb 24 19:54:36 2009 +0000
+++ b/app/soc/views/helper/access.py	Tue Feb 24 20:09:36 2009 +0000
@@ -438,13 +438,11 @@
     for checker_name, args in checks:
       try:
         self.doCheck(checker_name, django_args, args)
-        break
+        # one check passed, all is well
+        return
       except out_of_band.Error, e:
         # store the first esception
         first = first if first else e
-    else:
-      # one check passed, all is well
-      return
 
     # none passed, re-raise the first exception
     raise first