\OC_Util::setupFS($params['uid']);\r
}\r
\r
- //check if all requirements are met\r
- if(!Helper::checkRequirements() || !Helper::checkConfiguration()) {\r
- $error_msg = $l->t("Missing requirements.");\r
- $hint = $l->t('Please make sure that PHP 5.3.3 or newer is installed and that OpenSSL together with the PHP extension is enabled and configured properly. For now, the encryption app has been disabled.');\r
- \OC_App::disable('files_encryption');\r
- \OCP\Util::writeLog('Encryption library', $error_msg . ' ' . $hint, \OCP\Util::ERROR);\r
- \OCP\Template::printErrorPage($error_msg, $hint);\r
+ $privateKey = \OCA\Encryption\Keymanager::getPrivateKey($view, $params['uid']);\r
+\r
+ // if no private key exists, check server configuration\r
+ if(!$privateKey) {\r
+ //check if all requirements are met\r
+ if(!Helper::checkRequirements() || !Helper::checkConfiguration()) {\r
+ $error_msg = $l->t("Missing requirements.");\r
+ $hint = $l->t('Please make sure that PHP 5.3.3 or newer is installed and that OpenSSL together with the PHP extension is enabled and configured properly. For now, the encryption app has been disabled.');\r
+ \OC_App::disable('files_encryption');\r
+ \OCP\Util::writeLog('Encryption library', $error_msg . ' ' . $hint, \OCP\Util::ERROR);\r
+ \OCP\Template::printErrorPage($error_msg, $hint);\r
+ }\r
}\r
\r
$util = new Util($view, $params['uid']);\r