Add to function call to create condition

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

@ -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);
}
}

Loading…
Cancel
Save