Skip to content
Snippets Groups Projects
Commit ee083c20 authored by Florin Peter's avatar Florin Peter
Browse files

improved pre_unshare and post_unshare hook

parent c8946ea6
No related branches found
No related tags found
No related merge requests found
...@@ -514,6 +514,7 @@ class Share { ...@@ -514,6 +514,7 @@ class Share {
'fileSource' => $item['file_source'], 'fileSource' => $item['file_source'],
'shareType' => $shareType, 'shareType' => $shareType,
'shareWith' => $shareWith, 'shareWith' => $shareWith,
'itemParent' => $item['parent'],
)); ));
self::delete($item['id']); self::delete($item['id']);
\OC_Hook::emit('OCP\Share', 'post_unshare', array( \OC_Hook::emit('OCP\Share', 'post_unshare', array(
...@@ -521,6 +522,7 @@ class Share { ...@@ -521,6 +522,7 @@ class Share {
'itemSource' => $itemSource, 'itemSource' => $itemSource,
'shareType' => $shareType, 'shareType' => $shareType,
'shareWith' => $shareWith, 'shareWith' => $shareWith,
'itemParent' => $item['parent'],
)); ));
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment