Ignore invalid share types

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/34248/head
Joas Schilling 3 years ago
parent ec8e0f9bf6
commit 2acf9ffafe
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
  1. 2
      apps/files_sharing/lib/Notification/Notifier.php

@ -157,6 +157,8 @@ class Notifier implements INotifier {
if ($share->getStatus() !== IShare::STATUS_PENDING) {
throw new AlreadyProcessedException();
}
} else {
throw new \InvalidArgumentException('Invalid share type');
}
switch ($notification->getSubject()) {

Loading…
Cancel
Save