fix setFileKey() call in updateKeyfile hook
This commit is contained in:
parent
dc596a72c3
commit
5983643abd
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class Hooks {
|
|||
public static function updateKeyfile( $params ) {
|
||||
if (Crypt::mode(\OCP\User::getUser()) == 'client')
|
||||
if (isset($params['properties']['key'])) {
|
||||
Keymanager::setFileKey(\OCP\User::getUser(), $params['path'], $params['properties']['key']);
|
||||
Keymanager::setFileKey($params['path'], $params['properties']['key']);
|
||||
} else {
|
||||
error_log("Client side encryption is enabled but the client doesn't provide a encryption key for the file!");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue