check if permissions exists

This commit is contained in:
Bjoern Schiessle 2014-06-05 13:24:41 +02:00 committed by Robin Appelman
parent 60ea4388ed
commit 0b2ae314c7
1 changed files with 5 additions and 1 deletions

View File

@ -94,7 +94,11 @@ class Shared_Cache extends Cache {
$data['is_share_mount_point'] = true;
}
$data['uid_owner'] = $this->storage->getOwner($file);
if (isset($data['permissions'])) {
$data['permissions'] = $data['permissions'] & $this->storage->getPermissions('');
} else {
$data['permissions'] = $this->storage->getPermissions('');
}
return $data;
}
} else {