backend: Enforce notification access and clear push devices
This commit is contained in:
1 parent
ee5f1d3d10
commit
4f95c8a379
12 files changed
+145
-46
No files matched your search
@@ -49,7 +49,7 @@ public sealed class NotificationService(IAppDbContext db, ICurrentUser currentUs
|
||||
private IQueryable<Notification> Inbox()
|
||||
{
|
||||
var userId = currentUser.Id;
|
||||
return db.Notifications.Where(n => n.UserId == userId);
|
||||
return NotificationVisibility.VisibleToRecipients(db).Where(n => n.UserId == userId);
|
||||
}
|
||||
|
||||
private Task<int> MarkUnreadRowsAsync(IQueryable<Notification> query, CancellationToken ct)
|
||||
|
||||
Reference in new issue
Block a user