aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_encryption/hooks/hooks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php
index d06e9a0d2d3..b7e8df9eac0 100644
--- a/apps/files_encryption/hooks/hooks.php
+++ b/apps/files_encryption/hooks/hooks.php
@@ -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!");
}