halfapi/tests/dummy_domain/acl.py
2022-02-10 11:39:29 +01:00

15 lines
251 B
Python

from halfapi.lib import acl
from halfapi.lib.acl import public, private
from random import randint
def random(*args):
""" Random access ACL
"""
return randint(0,1) == 1
PRIORITY = (
[public],
[random1, random2],
[private]
)