Merge pull request #12549 from owncloud/shared-cache-non-existing
Dont return cached date in shared cache when the file doesn't exist
This commit is contained in:
commit
3026cdbc80
|
@ -89,16 +89,18 @@ class Shared_Cache extends Cache {
|
||||||
$cache = $this->getSourceCache($file);
|
$cache = $this->getSourceCache($file);
|
||||||
if ($cache) {
|
if ($cache) {
|
||||||
$data = $cache->get($this->files[$file]);
|
$data = $cache->get($this->files[$file]);
|
||||||
$data['displayname_owner'] = \OC_User::getDisplayName($this->storage->getSharedFrom());
|
if ($data) {
|
||||||
$data['path'] = $file;
|
$data['displayname_owner'] = \OC_User::getDisplayName($this->storage->getSharedFrom());
|
||||||
if ($file === '') {
|
$data['path'] = $file;
|
||||||
$data['is_share_mount_point'] = true;
|
if ($file === '') {
|
||||||
}
|
$data['is_share_mount_point'] = true;
|
||||||
$data['uid_owner'] = $this->storage->getOwner($file);
|
}
|
||||||
if (isset($data['permissions'])) {
|
$data['uid_owner'] = $this->storage->getOwner($file);
|
||||||
$data['permissions'] &= $this->storage->getPermissions($file);
|
if (isset($data['permissions'])) {
|
||||||
} else {
|
$data['permissions'] &= $this->storage->getPermissions($file);
|
||||||
$data['permissions'] = $this->storage->getPermissions($file);
|
} else {
|
||||||
|
$data['permissions'] = $this->storage->getPermissions($file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue