halfapi/tests/dummy_domain/acl.py

15 lines
251 B
Python
Raw Permalink Normal View History

from halfapi.lib import acl
from halfapi.lib.acl import public, private
from random import randint
2021-12-06 08:29:21 +01:00
def random(*args):
""" Random access ACL
"""
return randint(0,1) == 1
2022-02-10 11:37:26 +01:00
PRIORITY = (
[public],
[random1, random2],
[private]
)