-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.rules.json
49 lines (46 loc) · 2.87 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
{
"rules": {
"roles" : {
"$serverID" : {
"$uid": {
".read": "$uid === auth.uid && auth.uid != null",
".write": "auth.uid != null && !data.exists() || root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Owner' || root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Admin' || root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Délégué'"
}
}
},
"messages": {
"$channelID" : {
".read": "auth.uid !== null",
".write": "auth.uid != null && root.child('roles').child(auth.uid).child('role').val() != 'Muted'"
}
},
"channels" : {
"$serverID" : {
".read": "auth.uid != null && root.child('roles').child(auth.uid).child('role').val() != 'Banned'",
".write": "auth.uid != null && root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Owner' || root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Admin'",
"$channelID" : {
".read": "auth.uid != null && root.child('roles').child(auth.uid).child('role').val() != 'Banned'",
".write": "auth.uid != null && root.child('roles').child(auth.uid).child('role').val() != 'Banned'",
"seen": {
".read": "auth.uid != null && root.child('roles').child(auth.uid).child('role').val() != 'Banned'",
".write": "auth.uid != null && root.child('roles').child(auth.uid).child('role').val() != 'Banned'"
}
}
}
},
"serverstats": {
"$serverID":{
".read": "auth.uid != null && root.child('roles').child(auth.uid).child('role').val() != 'Banned'",
".write": "auth.uid != null && root.child('roles').child(auth.uid).child('role').val() != 'Banned'"
}
},
"requests": {
"$serverID": {
".read":"auth != null && (root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Owner' || root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Admin' || root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Délégué')",
"$uid": {
".read": "auth != null && ($uid === auth.uid || root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Owner' || root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Admin' || root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Délégué')",
".write": "auth != null && ($uid === auth.uid || root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Owner' || root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Admin' || root.child('roles').child($serverID).child(auth.uid).child('role').val() == 'Délégué')"
}
}
}
}}