diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-06 12:27:40 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-06 12:27:40 +0200 |
commit | fb462e83ccde5c46565c23545c5eb894acbd6fd3 (patch) | |
tree | 4b334e82c8e61247419f4120b18922fc923f5cf7 /apps/files/index.php | |
parent | 69b1625f0e368e65771fef473f4b4d4a13456354 (diff) | |
download | nextcloud-server-fb462e83ccde5c46565c23545c5eb894acbd6fd3.tar.gz nextcloud-server-fb462e83ccde5c46565c23545c5eb894acbd6fd3.zip |
no longer enforce log out, but provide useful errors/warnings instead
Diffstat (limited to 'apps/files/index.php')
-rw-r--r-- | apps/files/index.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/index.php b/apps/files/index.php index f1e120c872c..b81ba2bdde9 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -124,8 +124,12 @@ if ($needUpgrade) { $storageInfo=OC_Helper::getStorageInfo($dir); $maxUploadFilesize=OCP\Util::maxUploadFilesize($dir); $publicUploadEnabled = \OC_Appconfig::getValue('core', 'shareapi_allow_public_upload', 'yes'); + // if the encryption app is disabled, than everything is fine + $encryptionInitStatus = \OCA\Encryption\Session::INIT_SUCCESSFUL; if (OC_App::isEnabled('files_encryption')) { $publicUploadEnabled = 'no'; + $session = new \OCA\Encryption\Session(new \OC\Files\View('/')); + $encryptionInitStatus = $session->getInitialized(); } $trashEnabled = \OCP\App::isEnabled('files_trashbin'); @@ -133,7 +137,7 @@ if ($needUpgrade) { if ($trashEnabled) { $trashEmpty = \OCA\Files_Trashbin\Trashbin::isEmpty($user); } - + OCP\Util::addscript('files', 'fileactions'); OCP\Util::addscript('files', 'files'); OCP\Util::addscript('files', 'keyboardshortcuts'); @@ -153,5 +157,6 @@ if ($needUpgrade) { $tmpl->assign('isPublic', false); $tmpl->assign('publicUploadEnabled', $publicUploadEnabled); $tmpl->assign("encryptedFiles", \OCP\Util::encryptedFiles()); + $tmpl->assign("encryptionInitStatus", $encryptionInitStatus); $tmpl->printPage(); } |