exit the look when we've found what we're looking for (Thanks Aaron)
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 23 Jun 2011 19:13:14 +0000 (15:13 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 23 Jun 2011 19:13:14 +0000 (15:13 -0400)
sfa/trust/rights.py

index ff1ac2d..14749cb 100644 (file)
@@ -220,6 +220,7 @@ class Rights:
             for my_right in self.rights:
                 if my_right.is_superset(child_right):
                     allowed = True
+                    break
             if not allowed:
                 return False
         return True