Skip to content
Snippets Groups Projects
Commit 1c4c8941 authored by Florin Peter's avatar Florin Peter
Browse files

also fix login errors while filesystem is not loaded in app.php

parent 88d74c33
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,12 @@ stream_wrapper_register('crypt', 'OCA\Encryption\Stream');
// check if we are logged in
if (OCP\User::isLoggedIn()) {
// ensure filesystem is loaded
if(!\OC\Files\Filesystem::$loaded) {
\OC_Util::setupFS();
}
$view = new OC_FilesystemView('/');
$session = new \OCA\Encryption\Session($view);
......
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