-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.rules.json
More file actions
21 lines (21 loc) · 913 Bytes
/
Copy pathdatabase.rules.json
File metadata and controls
21 lines (21 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"rules": {
".read": "auth != null",
".write": "auth != null",
"presence": {
"$uid": {
".write": "auth != null && auth.uid == $uid"
}
},
"notifications": {
"$uid": {
".read": "auth != null && auth.uid == $uid",
".write": "auth != null && (root.child('users').child(auth.uid).child('role').val() == 'admin' || root.child('users').child(auth.uid).child('role').val() == 'pastor' || root.child('users').child(auth.uid).child('role').val() == 'leader')"
}
},
"live_attendance": {
".read": "auth != null",
".write": "auth != null && (root.child('users').child(auth.uid).child('role').val() == 'admin' || root.child('users').child(auth.uid).child('role').val() == 'pastor' || root.child('users').child(auth.uid).child('role').val() == 'usher' || root.child('users').child(auth.uid).child('role').val() == 'leader')"
}
}
}