Skip to content

Commit e8b662f

Browse files
committed
support restrict-ackees for version 2025-12-23
1 parent f01a853 commit e8b662f

1 file changed

Lines changed: 103 additions & 0 deletions

File tree

t/restrict-ackees.json

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,109 @@
11
{
22
"name": "restrict-ackees",
33
"versions": {
4+
"2025-12-23": {
5+
"defaults": {
6+
"record:read": "ng"
7+
},
8+
"statements": [
9+
{
10+
"action": "record:read",
11+
"key": "",
12+
"emit": "ok",
13+
"reason": "reader is the owner or an ackee of the owner",
14+
"condition": {
15+
"op": "Or",
16+
"args": [
17+
{
18+
"op": "Eq",
19+
"args": [
20+
{
21+
"op": "Load",
22+
"const": "requester.ccid"
23+
},
24+
{
25+
"op": "CCUriOwner",
26+
"args": [
27+
{
28+
"op": "Load",
29+
"const": "self.key"
30+
}
31+
]
32+
}
33+
]
34+
},
35+
{
36+
"op": "And",
37+
"args": [
38+
{
39+
"op": "Not",
40+
"args": [
41+
{
42+
"op": "Eq",
43+
"args": [
44+
{
45+
"op": "Load",
46+
"const": "requester.ccid"
47+
},
48+
{
49+
"op": "Const",
50+
"const": ""
51+
}
52+
]
53+
}
54+
]
55+
},
56+
{
57+
"op": "IsNotEmpty",
58+
"args": [
59+
{
60+
"op": "ConcrntCall",
61+
"args": [
62+
{
63+
"op": "CCUriOwner",
64+
"args": [
65+
{
66+
"op": "Load",
67+
"const": "self.key"
68+
}
69+
]
70+
},
71+
{
72+
"op": "Const",
73+
"const": "net.concrnt.core.acknowledges"
74+
},
75+
{
76+
"op": "Const",
77+
"const": "from"
78+
},
79+
{
80+
"op": "CCUriOwner",
81+
"args": [
82+
{
83+
"op": "Load",
84+
"const": "self.key"
85+
}
86+
]
87+
},
88+
{
89+
"op": "Const",
90+
"const": "to"
91+
},
92+
{
93+
"op": "Load",
94+
"const": "requester.ccid"
95+
}
96+
]
97+
}
98+
]
99+
}
100+
]
101+
}
102+
]
103+
}
104+
}
105+
]
106+
},
4107
"2024-07-01": {
5108
"statements": {
6109
"timeline.distribute": {

0 commit comments

Comments
 (0)