summaryrefslogtreecommitdiffstats
path: root/lib/public/share.php
diff options
context:
space:
mode:
authorFlorian Hülsmann <fh@cbix.de>2012-10-26 23:06:40 +0200
committerFlorian Hülsmann <fh@cbix.de>2012-10-26 23:15:37 +0200
commita48734bcb5f15d86619eda47d38e216c0d53fef4 (patch)
tree68a43fbcf664521e038c0d075ffda4ce1b45e050 /lib/public/share.php
parentfe757938157b4d04277a71b3cf675c4f981403bc (diff)
downloadnextcloud-server-a48734bcb5f15d86619eda47d38e216c0d53fef4.tar.gz
nextcloud-server-a48734bcb5f15d86619eda47d38e216c0d53fef4.zip
fixed user/group sharing hooks
Diffstat (limited to 'lib/public/share.php')
-rw-r--r--lib/public/share.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 7a9a087d1bd..da1c0616390 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -937,23 +937,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) {