예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
    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)