-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.rules.example.json
More file actions
38 lines (38 loc) · 1.38 KB
/
Copy pathdatabase.rules.example.json
File metadata and controls
38 lines (38 loc) · 1.38 KB
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
{
"rules": {
"devices": {
".read": true,
"$deviceId": {
"status": {
".write": "auth.token.email == 'device@your-project-id.local'"
},
"motor": {
".write": "auth.token.email == 'device@your-project-id.local'"
},
"ota": {
".write": "auth.token.email == 'device@your-project-id.local'"
},
"command": {
"action": {
".write": "auth.token.email == 'device@your-project-id.local' || auth.token.email == root.child('devices').child($deviceId).child('status').child('owner').val()"
},
"firmwareUrl": {
".write": "auth.token.email == root.child('devices').child($deviceId).child('status').child('owner').val()"
}
},
"displayName": {
".write": "auth.token.email == root.child('devices').child($deviceId).child('status').child('owner').val()"
},
"fcmTokens": {
".write": "auth.token.email == root.child('devices').child($deviceId).child('status').child('owner').val()"
},
"autoResume": {
".write": "auth.token.email == root.child('devices').child($deviceId).child('status').child('owner').val()"
},
"schedule": {
".write": "auth.token.email == root.child('devices').child($deviceId).child('status').child('owner').val()"
}
}
}
}
}