mirror of
https://github.com/nextcloud/server.git
synced 2026-04-02 15:45:38 -04:00
Ignore invalid share types
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
ec8e0f9bf6
commit
2acf9ffafe
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