Skip to content
Snippets Groups Projects
Commit 5983643a authored by Björn Schießle's avatar Björn Schießle
Browse files

fix setFileKey() call in updateKeyfile hook

parent dc596a72
No related branches found
No related tags found
No related merge requests found
......@@ -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!");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment