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