-
Notifications
You must be signed in to change notification settings - Fork 3
/
database.rules.json
102 lines (102 loc) · 3.15 KB
/
database.rules.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"rules": {
".write": false,
"auth_test": {
".read": false,
".write": "auth.token.isEditor === true"
},
"last_updated": {
".read": true,
".write": "auth.token.isEditor === true",
"patreon_list": {
".write": "auth.uid !== null || auth.uid === 'my-service-worker'"
},
"critData": {
".write": "auth.uid !== null"
},
"discord_bot": {
".read": "auth.uid === 'discord-bot'",
".write": "auth.uid === 'discord-bot'"
}
},
"critData": {
".read": true,
"$uid": {
"trophies": {
".write": "auth.uid === $uid",
".validate": "newData.isNumber() && newData.val() >= 0"
},
"crit": {
".write": "auth.uid === $uid",
".validate": "newData.isNumber() && newData.val() >= 111"
}
}
},
"decks": {
".read": true,
".write": "auth.token.isEditor === true"
},
"decks_guide": {
".read": true,
".write": "auth.token.isEditor === true"
},
"dice": {
".read": true,
".write": "auth.token.isEditor === true"
},
"discord_bot": {
".read": "auth.uid === 'discord-bot'",
".write": "auth.uid === 'discord-bot'",
"help": {
".read": true
}
},
"wiki": {
".read": true,
".write": "auth.token.isEditor === true"
},
"news": {
".read": true,
".write": "auth.token.isEditor === true"
},
"token_storage": {
".read": "auth.uid === 'my-service-worker'",
".write": "auth.uid === 'my-service-worker'"
},
"credit": {
".read": true,
".write": "auth.token.isEditor === true"
},
"users": {
".read": "auth.uid === 'my-service-worker' || auth.uid === 'discord-bot'",
".write": "auth.uid === 'my-service-worker'",
"$uid": {
".read": "auth.uid === $uid || auth.uid === 'my-service-worker' || auth.uid === 'discord-bot'",
".write": "auth.uid === $uid",
"editor": {
".write": false
},
"linked-account": {
".write": "auth.uid === 'my-service-worker'"
},
"patreon-tier": {
".write": "auth.uid === 'my-service-worker'"
}
}
},
"patreon_list": {
".read": true,
".write": "auth.uid === 'my-service-worker'",
"$i": {
"$uid": {
"message": {
".write": "auth.uid === $uid"
},
"youtubeId": {
".write": "auth.uid === $uid"
}
}
}
}
}
}