add deleteAllFileKeys to public interface and add "uid" as parameter for the

update call
remotes/origin/poc-doctrine-migrations
Bjoern Schiessle 10 years ago
parent c6be1ba8d3
commit b5fad75e57
  1. 2
      lib/private/encryption/update.php
  2. 3
      lib/public/encryption/iencryptionmodule.php
  3. 8
      lib/public/encryption/keys/istorage.php

@ -104,7 +104,7 @@ class Update {
foreach ($allFiles as $path) {
$usersSharing = $this->util->getSharingUsersArray($path);
$encryptionModule->update($absPath, $usersSharing);
$encryptionModule->update($absPath, $this->uid, $usersSharing);
}
}

@ -84,10 +84,11 @@ interface IEncryptionModule {
* 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

@ -104,6 +104,14 @@ interface IStorage {
*/
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

Loading…
Cancel
Save