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'],
|
||||
'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…
Reference in New Issue