aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-07-02 10:49:22 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-07-02 10:49:22 +0200
commitf52eec765c0ec17d00d1bb021b719904fff52fc9 (patch)
treea195ed9ae702095733bd0f0a01ae863c425878c3
parentbfcb8ffeb3bf46963cb002feec07c08643ec9d82 (diff)
downloadnextcloud-server-f52eec765c0ec17d00d1bb021b719904fff52fc9.tar.gz
nextcloud-server-f52eec765c0ec17d00d1bb021b719904fff52fc9.zip
owner is stored as 'uid_owner', not as 'owner' in the oc_share table
-rw-r--r--lib/private/share/hooks.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/share/hooks.php b/lib/private/share/hooks.php
index 6eff4cc246f..b0d4f0677f5 100644
--- a/lib/private/share/hooks.php
+++ b/lib/private/share/hooks.php
@@ -63,12 +63,12 @@ class Hooks extends \OC\Share\Constants {
$itemTarget = $sourceExists['item_target'];
} else {
$itemTarget = Helper::generateTarget($item['item_type'], $item['item_source'], self::SHARE_TYPE_USER, $arguments['uid'],
- $item['owner'], null, $item['parent']);
+ $item['uid_owner'], null, $item['parent']);
// do we also need a file target
if ($item['item_type'] === 'file' || $item['item_type'] === 'folder') {
$fileTarget = Helper::generateTarget('file', $item['file_target'], self::SHARE_TYPE_USER, $arguments['uid'],
- $item['owner'], null, $item['parent']);
+ $item['uid_owner'], null, $item['parent']);
} else {
$fileTarget = null;
}