def policy(self, rules, default_rule='allow', overwrite=True): # Inject an allow and deny rule rules['allow'] = '@' rules['deny'] = '!' # Set the rules policy.set_rules(rules, default_rule, overwrite)
def policy(self, rules, default_rule="allow", overwrite=True): # Inject an allow and deny rule rules["allow"] = "@" rules["deny"] = "!" # Set the rules policy.set_rules(rules, default_rule, overwrite)