Skip to content

Commit

Permalink
Small fix (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltoder authored Dec 1, 2024
1 parent 2b8ec71 commit b2ffcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database.rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"$userId": {
".read": "auth != null",
".write": "auth != null && (auth.uid == $userId || root.child('users/' + auth.uid + '/admin').val() == true)",
".validate": "newData.hasChildren(['color', 'name'])",
".validate": "newData.hasChildren(['color', 'name']) && (newData.child('banned').exists() || !data.child('banned').exists() || root.child('users/' + auth.uid + '/admin').val() == true)",
"color": {
".validate": "newData.isString()"
},
Expand Down

0 comments on commit b2ffcf0

Please sign in to comment.