foreach ($allFiles as $path) {
$usersSharing = $this->util->getSharingUsersArray($path);
- $encryptionModule->update($absPath, $usersSharing);
+ $encryptionModule->update($absPath, $this->uid, $usersSharing);
}
}
* update encrypted file, e.g. give additional users access to the file
*
* @param string $path path to the file which should be updated
+ * @param string $uid of the user who performs the operation
* @param array $accessList who has access to the file contains the key 'users' and 'public'
* @return boolean
*/
- public function update($path, $accessList);
+ public function update($path, $uid, $accessList);
/**
* should the file be encrypted or not
*/
public function deleteFileKey($path, $keyId);
+ /**
+ * delete all file keys for a given file
+ *
+ * @param string $path to the file
+ * @return boolean
+ */
+ public function deleteAllFileKeys($path);
+
/**
* delete system-wide encryption keys not related to a specific user,
* e.g something like a key for public link shares