|
|
|
|
@ -168,6 +168,14 @@ class Update { |
|
|
|
|
*/ |
|
|
|
|
public function update($path) { |
|
|
|
|
|
|
|
|
|
$encryptionModule = $this->encryptionManager->getEncryptionModule(); |
|
|
|
|
|
|
|
|
|
// if the encryption module doesn't encrypt the files on a per-user basis |
|
|
|
|
// we have nothing to do here. |
|
|
|
|
if ($encryptionModule->needDetailedAccessList() === false) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// if a folder was shared, get a list of all (sub-)folders |
|
|
|
|
if ($this->view->is_dir($path)) { |
|
|
|
|
$allFiles = $this->util->getAllFiles($path); |
|
|
|
|
@ -175,7 +183,7 @@ class Update { |
|
|
|
|
$allFiles = array($path); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$encryptionModule = $this->encryptionManager->getEncryptionModule(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($allFiles as $file) { |
|
|
|
|
$usersSharing = $this->file->getAccessList($file); |
|
|
|
|
|