diff --git a/firestore.rules b/firestore.rules index ba0521d0..6256cb46 100644 --- a/firestore.rules +++ b/firestore.rules @@ -9,7 +9,11 @@ service cloud.firestore { } 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) { @@ -26,4 +30,4 @@ service cloud.firestore { !prohibited(request.resource.data.playerInitials); } } -} \ No newline at end of file +}