From 91db29775347e559c92a5f559cf0b5241aefac72 Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot Date: Wed, 11 May 2022 09:05:31 +0200 Subject: [PATCH] Add to function call to create condition --- firestore.rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firestore.rules b/firestore.rules index 6256cb46..8860afc6 100644 --- a/firestore.rules +++ b/firestore.rules @@ -26,7 +26,8 @@ service cloud.firestore { // A leaderboard entry can be created if the user is authenticated, // it's 3 characters long, and not a prohibited combination. allow create: if isAuthedUser(request.auth) && - inCharLimit(request.resource.data.playerInitials) && + inCharLimit(request.resource.data.playerInitials) && + isValidCharacter(request.resource.data.character) && !prohibited(request.resource.data.playerInitials); } }