diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-31 11:55:40 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-31 11:55:40 +0200 |
commit | 4a0e69f94180725552ed35ba9cc81eeb6a71c3aa (patch) | |
tree | 7c6825a16c18e6c998f638d2d0bc5d5347c708b7 /apps/files_encryption/hooks/hooks.php | |
parent | a730a72dcb069f549b326070724dbf1ee865135d (diff) | |
download | nextcloud-server-4a0e69f94180725552ed35ba9cc81eeb6a71c3aa.tar.gz nextcloud-server-4a0e69f94180725552ed35ba9cc81eeb6a71c3aa.zip |
fix login errors while filesystem is not loaded
Diffstat (limited to 'apps/files_encryption/hooks/hooks.php')
-rw-r--r-- | apps/files_encryption/hooks/hooks.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index 955425595ba..743593d798a 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -46,6 +46,11 @@ class Hooks { $view = new \OC_FilesystemView('/');
+ // ensure filesystem is loaded
+ if(!\OC\Files\Filesystem::$loaded) {
+ \OC_Util::setupFS($params['uid']);
+ }
+
$util = new Util($view, $params['uid']);
// setup user, if user not ready force relogin
|