Remove unused unsubscribe attributes
This commit is contained in:
parent
272ba921a0
commit
6c3338f5d7
|
@ -56,11 +56,6 @@ export type PrivateUser = {
|
||||||
username: string // denormalized from User
|
username: string // denormalized from User
|
||||||
|
|
||||||
email?: string
|
email?: string
|
||||||
unsubscribedFromResolutionEmails?: boolean
|
|
||||||
unsubscribedFromCommentEmails?: boolean
|
|
||||||
unsubscribedFromAnswerEmails?: boolean
|
|
||||||
unsubscribedFromGenericEmails?: boolean
|
|
||||||
unsubscribedFromWeeklyTrendingEmails?: boolean
|
|
||||||
weeklyTrendingEmailSent?: boolean
|
weeklyTrendingEmailSent?: boolean
|
||||||
manaBonusEmailSent?: boolean
|
manaBonusEmailSent?: boolean
|
||||||
initialDeviceToken?: string
|
initialDeviceToken?: string
|
||||||
|
|
|
@ -78,7 +78,7 @@ service cloud.firestore {
|
||||||
allow read: if userId == request.auth.uid || isAdmin();
|
allow read: if userId == request.auth.uid || isAdmin();
|
||||||
allow update: if (userId == request.auth.uid || isAdmin())
|
allow update: if (userId == request.auth.uid || isAdmin())
|
||||||
&& request.resource.data.diff(resource.data).affectedKeys()
|
&& request.resource.data.diff(resource.data).affectedKeys()
|
||||||
.hasOnly(['apiKey', 'unsubscribedFromResolutionEmails', 'unsubscribedFromCommentEmails', 'unsubscribedFromAnswerEmails', 'unsubscribedFromWeeklyTrendingEmails', 'notificationPreferences', 'twitchInfo']);
|
.hasOnly(['apiKey', 'notificationPreferences', 'twitchInfo']);
|
||||||
}
|
}
|
||||||
|
|
||||||
match /private-users/{userId}/views/{viewId} {
|
match /private-users/{userId}/views/{viewId} {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user