diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-27 10:02:26 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-27 10:02:26 +0200 |
commit | cbc71784c0a5b698f56d2005b4ac7b773d2e003a (patch) | |
tree | 1d643f24ca5aa95752a0f12e62746ab54c31d7b0 /lib/public | |
parent | 695405dfeb4da3733df1b1be239a97100f2ce66f (diff) | |
parent | 3bef19c6238886a98918ce9f05b8cd3a99d16fc4 (diff) | |
download | nextcloud-server-cbc71784c0a5b698f56d2005b4ac7b773d2e003a.tar.gz nextcloud-server-cbc71784c0a5b698f56d2005b4ac7b773d2e003a.zip |
Merge branch 'master' into filesystem
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/share.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index dd6c841c99d..060f67c9e91 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -939,23 +939,23 @@ class Share { } else { $fileTarget = null; } + \OC_Hook::emit('OCP\Share', 'post_shared', array( + 'itemType' => $itemType, + 'itemSource' => $itemSource, + 'itemTarget' => $itemTarget, + 'parent' => $parent, + 'shareType' => self::$shareTypeGroupUserUnique, + 'shareWith' => $uid, + 'uidOwner' => $uidOwner, + 'permissions' => $permissions, + 'fileSource' => $fileSource, + 'fileTarget' => $fileTarget, + 'id' => $parent + )); // Insert an extra row for the group share if the item or file target is unique for this user if ($itemTarget != $groupItemTarget || (isset($fileSource) && $fileTarget != $groupFileTarget)) { $query->execute(array($itemType, $itemSource, $itemTarget, $parent, self::$shareTypeGroupUserUnique, $uid, $uidOwner, $permissions, time(), $fileSource, $fileTarget)); $id = \OC_DB::insertid('*PREFIX*share'); - \OC_Hook::emit('OCP\Share', 'post_shared', array( - 'itemType' => $itemType, - 'itemSource' => $itemSource, - 'itemTarget' => $itemTarget, - 'parent' => $parent, - 'shareType' => self::$shareTypeGroupUserUnique, - 'shareWith' => $uid, - 'uidOwner' => $uidOwner, - 'permissions' => $permissions, - 'fileSource' => $fileSource, - 'fileTarget' => $fileTarget, - 'id' => $id - )); } } if ($parentFolder === true) { |