Remove unneeded file initialization in encryption, already handled in a hook
This commit is contained in:
parent
a9a37b5363
commit
724ff6264a
|
@ -35,22 +35,6 @@ if (!OC_Config::getValue('maintenance', false)) {
|
||||||
if(!in_array('crypt', stream_get_wrappers())) {
|
if(!in_array('crypt', stream_get_wrappers())) {
|
||||||
stream_wrapper_register('crypt', 'OCA\Encryption\Stream');
|
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\Files\View('/');
|
|
||||||
|
|
||||||
$sessionReady = OCA\Encryption\Helper::checkRequirements();
|
|
||||||
if($sessionReady) {
|
|
||||||
$session = new \OCA\Encryption\Session($view);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// logout user if we are in maintenance to force re-login
|
// logout user if we are in maintenance to force re-login
|
||||||
OCP\User::logout();
|
OCP\User::logout();
|
||||||
|
|
Loading…
Reference in New Issue