Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
b5fad75e
Commit
b5fad75e
authored
Mar 27, 2015
by
Bjoern Schiessle
Browse files
add deleteAllFileKeys to public interface and add "uid" as parameter for the
update call
parent
c6be1ba8
Changes
3
Hide whitespace changes
Inline
Side-by-side
lib/private/encryption/update.php
View file @
b5fad75e
...
...
@@ -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
);
}
}
...
...
lib/public/encryption/iencryptionmodule.php
View file @
b5fad75e
...
...
@@ -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
...
...
lib/public/encryption/keys/istorage.php
View file @
b5fad75e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment