improved pre_unshare and post_unshare hook
This commit is contained in:
parent
c8946ea608
commit
ee083c20e6
|
@ -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 {
|
||||||
'itemSource' => $itemSource,
|
'itemSource' => $itemSource,
|
||||||
'shareType' => $shareType,
|
'shareType' => $shareType,
|
||||||
'shareWith' => $shareWith,
|
'shareWith' => $shareWith,
|
||||||
|
'itemParent' => $item['parent'],
|
||||||
));
|
));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue