check shares for the real file and not for the .part file

remotes/origin/stable6
Bjoern Schiessle 2013-08-27 16:29:54 +07:00
parent 404e36323a
commit f6830e7462
1 changed files with 5 additions and 0 deletions

@ -1136,6 +1136,11 @@ class Util {
// Make sure that a share key is generated for the owner too
list($owner, $ownerPath) = $this->getUidAndFilename($filePath);
$pathinfo = pathinfo($ownerPath);
if(array_key_exists('extension', $pathinfo) && $pathinfo['extension'] === 'part') {
$ownerPath = $pathinfo['dirname'] . '/' . $pathinfo['filename'];
}
$userIds = array();
if ($sharingEnabled) {