]> source.dussan.org Git - nextcloud-server.git/commitdiff
improved pre_unshare and post_unshare hook
authorFlorin Peter <github@florin-peter.de>
Sun, 5 May 2013 21:41:04 +0000 (23:41 +0200)
committerFlorin Peter <github@florin-peter.de>
Sun, 5 May 2013 21:41:04 +0000 (23:41 +0200)
lib/public/share.php

index e0aedf356947fdab09a9ed98c4a7f451ba35aa6c..fee906d18776dcf21c8b7aecd935a1bf015a0390 100644 (file)
@@ -514,6 +514,7 @@ class Share {
                                'fileSource' => $item['file_source'],
                                'shareType' => $shareType,
                                'shareWith' => $shareWith,
+                'itemParent' => $item['parent'],
                        ));
                        self::delete($item['id']);
                        \OC_Hook::emit('OCP\Share', 'post_unshare', array(
@@ -521,6 +522,7 @@ class Share {
                                        'itemSource' => $itemSource,
                                        'shareType' => $shareType,
                                        'shareWith' => $shareWith,
+                    'itemParent' => $item['parent'],
                        ));
                        return true;
                }