Add /private-users/apiKey to DB
This commit is contained in:
parent
19da0c6c82
commit
c6e5fe1c3c
|
@ -35,4 +35,5 @@ export type PrivateUser = {
|
|||
unsubscribedFromGenericEmails?: boolean
|
||||
initialDeviceToken?: string
|
||||
initialIpAddress?: string
|
||||
apiKey?: string
|
||||
}
|
||||
|
|
|
@ -21,6 +21,9 @@ service cloud.firestore {
|
|||
|
||||
match /private-users/{userId} {
|
||||
allow read: if resource.data.id == request.auth.uid || isAdmin();
|
||||
allow update: if (resource.data.id == request.auth.uid || isAdmin())
|
||||
&& request.resource.data.diff(resource.data).affectedKeys()
|
||||
.hasOnly(['apiKey']);
|
||||
}
|
||||
|
||||
match /private-users/{userId}/views/{viewId} {
|
||||
|
|
Loading…
Reference in New Issue
Block a user