From 34fc215133570020aa9869db6dfcdce891ec9cfd Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 19 Jan 2026 15:58:30 +0100 Subject: [PATCH] fix: adjust SharesUpdatedListener to event change Signed-off-by: Robin Appelman --- apps/files_sharing/lib/Listener/SharesUpdatedListener.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/Listener/SharesUpdatedListener.php b/apps/files_sharing/lib/Listener/SharesUpdatedListener.php index ba0073f41f5..b7b85689f8a 100644 --- a/apps/files_sharing/lib/Listener/SharesUpdatedListener.php +++ b/apps/files_sharing/lib/Listener/SharesUpdatedListener.php @@ -44,7 +44,12 @@ class SharesUpdatedListener implements IEventListener { if ($event instanceof FilesystemTornDownEvent) { $this->updatedUsers = new CappedMemoryCache(); } - if ($event instanceof UserAddedEvent || $event instanceof UserRemovedEvent || $event instanceof UserShareAccessUpdatedEvent) { + if ($event instanceof UserShareAccessUpdatedEvent) { + foreach ($event->getUsers() as $user) { + $this->updateForUser($user); + } + } + if ($event instanceof UserAddedEvent || $event instanceof UserRemovedEvent) { $this->updateForUser($event->getUser()); } if ($event instanceof ShareCreatedEvent || $event instanceof BeforeShareDeletedEvent) {