Enforce auth rules in db

This commit is contained in:
Ian Philips 2022-05-31 09:21:59 -06:00
parent a3b83ffaf0
commit 156b9c2edb

View File

@ -134,7 +134,6 @@ function Notification(props: {
useEffect(() => {
if (!contract || !notification || notification.isSeen) return
if (userId != currentUser.id) return
updateDoc(doc(db, `users/${currentUser.id}/notifications/`, id), {
...notification,
isSeen: true,