From d510e60b4d4ccb938896bee49e74259c7fb75ccb Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 23 Jun 2011 15:13:14 -0400 Subject: [PATCH] exit the look when we've found what we're looking for (Thanks Aaron) --- sfa/trust/rights.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.43.0