Sfoglia il codice sorgente

Fix previews for federated shares

The owner of a federated file is the federated user. For which we
obviously can't setup a view.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v11.0RC2
Roeland Jago Douma 7 anni fa
parent
commit
dab87ef6fd
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      lib/private/Preview/GeneratorHelper.php

+ 2
- 1
lib/private/Preview/GeneratorHelper.php Vedi File

@@ -60,7 +60,8 @@ class GeneratorHelper {
* This is required to create the old view and path
*/
private function getViewAndPath(File $file) {
$owner = $file->getOwner()->getUID();
$absPath = ltrim($file->getPath(), '/');
$owner = explode('/', $absPath)[0];

$userFolder = $this->rootFolder->getUserFolder($owner)->getParent();


Loading…
Annulla
Salva