|
@@ 997-1000 (lines=4) @@
|
| 994 |
|
|
| 995 |
|
if ($data and isset($data['fileid'])) { |
| 996 |
|
// upgrades from oc6 or lower might not have the permissions set in the file cache |
| 997 |
|
if ($data['permissions'] === 0) { |
| 998 |
|
$data['permissions'] = $storage->getPermissions($data['path']); |
| 999 |
|
$cache->update($data['fileid'], array('permissions' => $data['permissions'])); |
| 1000 |
|
} |
| 1001 |
|
if ($includeMountPoints and $data['mimetype'] === 'httpd/unix-directory') { |
| 1002 |
|
//add the sizes of other mount points to the folder |
| 1003 |
|
$extOnly = ($includeMountPoints === 'ext'); |
|
@@ 1076-1079 (lines=4) @@
|
| 1073 |
|
$files = array(); |
| 1074 |
|
$contents = $cache->getFolderContentsById($folderId); //TODO: mimetype_filter |
| 1075 |
|
foreach ($contents as $content) { |
| 1076 |
|
if ($content['permissions'] === 0) { |
| 1077 |
|
$content['permissions'] = $storage->getPermissions($content['path']); |
| 1078 |
|
$cache->update($content['fileid'], array('permissions' => $content['permissions'])); |
| 1079 |
|
} |
| 1080 |
|
// if sharing was disabled for the user we remove the share permissions |
| 1081 |
|
if (\OCP\Util::isSharingDisabledForUser()) { |
| 1082 |
|
$content['permissions'] = $content['permissions'] & ~\OCP\Constants::PERMISSION_SHARE; |