Fix settings
This commit is contained in:
parent
bf809ac85a
commit
f5638d9163
|
@ -6,16 +6,16 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
use OCA\Encryption\KeyManager;
|
||||
|
||||
\OC_Util::checkAdminUser();
|
||||
|
||||
$tmpl = new OCP\Template('encryption', 'settings-admin');
|
||||
|
||||
// Check if an adminRecovery account is enabled for recovering files after lost pwd
|
||||
$recoveryAdminEnabled = \OC::$server->getConfig()->getAppValue('encryption', 'recoveryAdminEnabled', '0');
|
||||
$session = new \OCA\Encryption\Session(\OC::$server->getSession());
|
||||
|
||||
|
||||
$tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);
|
||||
$tmpl->assign('initStatus', KeyManager::$session->get('initStatus'));
|
||||
$tmpl->assign('initStatus', $session->getStatus());
|
||||
|
||||
return $tmpl->fetchPage();
|
||||
|
|
|
@ -22,7 +22,7 @@ $keymanager = new \OCA\Encryption\KeyManager(
|
|||
\OC::$server->getConfig(),
|
||||
\OC::$server->getUserSession(),
|
||||
$session,
|
||||
\OC::$server->getLogger());
|
||||
\OC::$server->getLogger(), null);
|
||||
|
||||
$user = \OCP\User::getUser();
|
||||
|
||||
|
|
Loading…
Reference in New Issue