Beispiel #1
0
 def _set_policy(self, json):
     acl.setup_policy()
     rules = cpolicy.Rules.load_json(json)
     acl.ENFORCER.set_rules(rules, use_conf=False)
Beispiel #2
0
def setup_auth_policy():
    acl.setup_policy()
 def _set_policy(self, json):
     acl.setup_policy()
     rules = cpolicy.Rules.load_json(json)
     acl.ENFORCER.set_rules(rules, use_conf=False)