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