Enforce auth rules in db
This commit is contained in:
parent
a3b83ffaf0
commit
156b9c2edb
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user