Skip to content

Commit

Permalink
Deploy security rules (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbutz authored Dec 30, 2023
2 parents 5abb668 + 2bc9419 commit 5f28e8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion firebase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "",
"license": "ISC",
"scripts": {
"deploy": "npx firebase-tools deploy --only 'firestore:rules,storage:rules'",
"deploy": "npx firebase-tools deploy --only 'firestore,storage'",
"test": "npx firebase-tools emulators:exec --only 'firestore,storage' 'jest -i'",
"export": "npx firebase-tools emulators:export ./emulator_data",
"lint": "eslint src"
Expand Down
4 changes: 0 additions & 4 deletions firebase/storage.rules
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ service firebase.storage {
return isClubMember(clubId) && request.auth.token.admin == true;
}

function isTableAdmin(clubId, tableId) {
return isClubMember(clubId) && request.auth.token.tableId == tableId;
}

match /clubs/{clubId}/{image} {
function canUpdate() {
return image in ['logo.jpeg'].toSet()
Expand Down

0 comments on commit 5f28e8d

Please sign in to comment.