Fix Firestore Security Rules

pull/467/head
creativecreatorormaybenot 3 years ago committed by GitHub
parent 75a5cf7537
commit 81924580de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,7 +9,11 @@ service cloud.firestore {
} }
function inCharLimit(initials) { function inCharLimit(initials) {
return initials.size() < 4; return initials.size() == 3;
}
function isValidCharacter(character) {
return character == 'android' || character == 'dash' || character == 'dino' || character == 'sparky';
} }
function isAuthedUser(auth) { function isAuthedUser(auth) {
@ -26,4 +30,4 @@ service cloud.firestore {
!prohibited(request.resource.data.playerInitials); !prohibited(request.resource.data.playerInitials);
} }
} }
} }

Loading…
Cancel
Save