Skip to content

Commit

Permalink
check campaign uid on uid lvl nog campaign id lvl
Browse files Browse the repository at this point in the history
  • Loading branch information
HarmlessHarm committed Nov 10, 2023
1 parent 102ac45 commit 5fdb1ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firebase-rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"rules": {
"campaigns": {
"$uid": {
".write": "$uid === auth.uid || root.child('users').child(auth.uid).child('admin').exists()",
".indexOn": "private",
"$campaignId": {
".write": "$uid === auth.uid || root.child('users').child(auth.uid).child('admin').exists()",
".indexOn": "private",
".validate": "newData.hasChildren(['name'])",
"timestamp": {
".validate": "newData.isNumber()"
Expand Down

0 comments on commit 5fdb1ad

Please sign in to comment.