Skip to content

Commit 34fc215

Browse files
committed
fix: adjust SharesUpdatedListener to event change
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent b431506 commit 34fc215

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/files_sharing/lib/Listener/SharesUpdatedListener.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ public function handle(Event $event): void {
4444
if ($event instanceof FilesystemTornDownEvent) {
4545
$this->updatedUsers = new CappedMemoryCache();
4646
}
47-
if ($event instanceof UserAddedEvent || $event instanceof UserRemovedEvent || $event instanceof UserShareAccessUpdatedEvent) {
47+
if ($event instanceof UserShareAccessUpdatedEvent) {
48+
foreach ($event->getUsers() as $user) {
49+
$this->updateForUser($user);
50+
}
51+
}
52+
if ($event instanceof UserAddedEvent || $event instanceof UserRemovedEvent) {
4853
$this->updateForUser($event->getUser());
4954
}
5055
if ($event instanceof ShareCreatedEvent || $event instanceof BeforeShareDeletedEvent) {

0 commit comments

Comments
 (0)