From: Tony Mack Date: Thu, 23 Jun 2011 19:13:14 +0000 (-0400) Subject: exit the look when we've found what we're looking for (Thanks Aaron) X-Git-Tag: sfa-1.0-27~76 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d510e60b4d4ccb938896bee49e74259c7fb75ccb;p=sfa.git exit the look when we've found what we're looking for (Thanks Aaron) --- diff --git a/sfa/trust/rights.py b/sfa/trust/rights.py index ff1ac2d6..14749cbe 100644 --- a/sfa/trust/rights.py +++ b/sfa/trust/rights.py @@ -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