mirror of
https://github.com/nextcloud/server.git
synced 2026-04-04 16:45:22 -04:00
fix: adjust SharesUpdatedListener to event change
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
b4315066b1
commit
34fc215133
1 changed files with 6 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue