Remove unneeded file initialization in encryption, already handled in a hook

This commit is contained in:
Robin Appelman 2014-08-28 17:00:35 +02:00
parent a9a37b5363
commit 724ff6264a
1 changed files with 0 additions and 16 deletions

View File

@ -35,22 +35,6 @@ if (!OC_Config::getValue('maintenance', false)) {
if(!in_array('crypt', stream_get_wrappers())) {
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 {
// logout user if we are in maintenance to force re-login
OCP\User::logout();