summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-08-08 15:32:05 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-08-08 15:32:05 +0200
commit5983643abdf0d451f46eed97ab34b486179c6d4a (patch)
tree66223f76656dbc11833839b7d2f7e71b6e43aadd /apps
parentdc596a72c385a5bd1159ec1c19b8cb05f36a4a30 (diff)
downloadnextcloud-server-5983643abdf0d451f46eed97ab34b486179c6d4a.tar.gz
nextcloud-server-5983643abdf0d451f46eed97ab34b486179c6d4a.zip
fix setFileKey() call in updateKeyfile hook
Diffstat (limited to 'apps')
-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!");
}