improved pre_unshare and post_unshare hook

This commit is contained in:
Florin Peter 2013-05-05 23:41:04 +02:00
parent c8946ea608
commit ee083c20e6

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