Skip to content
Snippets Groups Projects
Commit f52eec76 authored by Björn Schießle's avatar Björn Schießle
Browse files

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

parent bfcb8ffe
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment