owner is stored as 'uid_owner', not as 'owner' in the oc_share table

This commit is contained in:
Bjoern Schiessle 2015-07-02 10:49:22 +02:00
parent bfcb8ffeb3
commit f52eec765c
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}