diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-08-28 17:00:35 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-09-02 16:15:42 +0200 |
commit | 724ff6264abce5778065ebb77beda7a49777e48c (patch) | |
tree | 1b4290a5b2fee1ee6092061b0bc44d7bc7d71010 /apps | |
parent | a9a37b5363e5f08013ab8b4b7bff02652c3a4d12 (diff) | |
download | nextcloud-server-724ff6264abce5778065ebb77beda7a49777e48c.tar.gz nextcloud-server-724ff6264abce5778065ebb77beda7a49777e48c.zip |
Remove unneeded file initialization in encryption, already handled in a hook
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_encryption/appinfo/app.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/apps/files_encryption/appinfo/app.php b/apps/files_encryption/appinfo/app.php index a90f618e245..922d9885164 100644 --- a/apps/files_encryption/appinfo/app.php +++ b/apps/files_encryption/appinfo/app.php @@ -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(); |