mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 07:08:34 -04:00
Merge pull request #34248 from nextcloud/bugfix/noid/ignore-invalid-share-types
Ignore invalid share types
This commit is contained in:
commit
980ba65734
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue