Loading cloudcontrol/server/server.py +1 −8 Original line number Diff line number Diff line Loading @@ -308,14 +308,9 @@ class CCServer(object): match = RE_FAST_RULE_MATCHING.match(rule.match) if match and match.group(1) != requester: continue elif rule.match == 'id': continue # Optimization to handle wildcard matcher elif requester not in self.db.raw_query(rule.match): continue if rule.action == rule.ACCEPT: if rule.tql == 'id': # Optimization to handle wildcard tql allowed_result |= tql_response else: allowed_result |= tql_response & self.db.raw_query(rule.tql) elif rule.action == rule.DENY: # Defer deny action to the end of process: Loading Loading @@ -344,8 +339,6 @@ class CCServer(object): match = RE_FAST_RULE_MATCHING.match(rule.match) if match and match.group(1) != requester: continue elif rule.match == 'id': continue # Optimization to handle wildcard matcher elif requester not in self.db.raw_query(rule.match): continue if rule.action == rule.ACCEPT: Loading Loading
cloudcontrol/server/server.py +1 −8 Original line number Diff line number Diff line Loading @@ -308,14 +308,9 @@ class CCServer(object): match = RE_FAST_RULE_MATCHING.match(rule.match) if match and match.group(1) != requester: continue elif rule.match == 'id': continue # Optimization to handle wildcard matcher elif requester not in self.db.raw_query(rule.match): continue if rule.action == rule.ACCEPT: if rule.tql == 'id': # Optimization to handle wildcard tql allowed_result |= tql_response else: allowed_result |= tql_response & self.db.raw_query(rule.tql) elif rule.action == rule.DENY: # Defer deny action to the end of process: Loading Loading @@ -344,8 +339,6 @@ class CCServer(object): match = RE_FAST_RULE_MATCHING.match(rule.match) if match and match.group(1) != requester: continue elif rule.match == 'id': continue # Optimization to handle wildcard matcher elif requester not in self.db.raw_query(rule.match): continue if rule.action == rule.ACCEPT: Loading