improved pre_unshare and post_unshare hook

remotes/origin/stable6
Florin Peter 12 years ago
parent c8946ea608
commit ee083c20e6
  1. 2
      lib/public/share.php

@ -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;
}

Loading…
Cancel
Save