-
Notifications
You must be signed in to change notification settings - Fork 7
/
Rules.json
28 lines (28 loc) · 891 Bytes
/
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
{
"rules": {
"users":{
".read": "auth != null && root.child('admins').child(auth.uid).val() == true",
"$uid": {
".write": "auth != null && auth.uid == $uid",
".read": "auth != null && ( auth.uid == $uid || root.child('admins').child(auth.uid).val() == true)"
}
},
"tests":{
".read": "auth != null",
".write": false,
},
"Results" : {
".read": "auth != null && root.child('admins').child(auth.uid).val() == true",
"$child":{
"$uid": {
".write": "auth != null && auth.uid == $uid &&(!data.exists() || !newData.exists())",
".read": "auth != null && ( auth.uid == $uid || root.child('admins').child(auth.uid).val() == true)"
}
}
},
"admins" :{
".read":"auth!=null",
".write":"auth != null && root.child('admins').child(auth.uid).val() == true"
}
}
}