2021-11-29 08:37:52 +01:00
|
|
|
from halfapi.lib import acl
|
2023-02-23 02:51:28 +01:00
|
|
|
from halfapi.lib.acl import public, private, ACLS
|
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
|
|
|
|
2021-11-30 18:31:40 +01:00
|
|
|
ACLS = (
|
2023-02-23 02:51:28 +01:00
|
|
|
*ACLS,
|
|
|
|
('random', random.__doc__, 10)
|
2021-11-30 18:31:40 +01:00
|
|
|
)
|