diff options
author | Vitor Mattos <vitor@php.rio> | 2022-04-20 17:32:12 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-04-20 17:32:12 +0300 |
commit | 00712f3a85c46dc509d59a86eaaa67a02d5f1611 (patch) | |
tree | b77d5f598a10edb89c5f3fd0d3a53a43875112b6 /lib | |
parent | 31373cef9d354ed3b815cc2d1b7ec2a111425217 (diff) |
Fix inverted argument
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Share/RoomShareProvider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Share/RoomShareProvider.php b/lib/Share/RoomShareProvider.php index eee33bc82..5d2d2316e 100644 --- a/lib/Share/RoomShareProvider.php +++ b/lib/Share/RoomShareProvider.php @@ -155,7 +155,7 @@ class RoomShareProvider implements IShareProvider { foreach ($existingShares as $existingShare) { if ($existingShare->getSharedWith() === $share->getSharedWith()) { // FIXME Should be moved away from GenericEvent as soon as OCP\Share20\IManager did move too - $this->dispatcher->dispatch(self::EVENT_SHARE_FILE_AGAIN, new GenericEvent($existingShare)); + $this->dispatcher->dispatch(new GenericEvent($existingShare), self::EVENT_SHARE_FILE_AGAIN); throw new GenericShareException('Already shared', $this->l->t('Path is already shared with this room'), 403); } } |