disable the recovery key if the master key is enabled
This commit is contained in:
parent
4f25f34178
commit
b6050b44c2
|
@ -49,5 +49,6 @@ $encryptHomeStorage = $util->shouldEncryptHomeStorage();
|
|||
$tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);
|
||||
$tmpl->assign('initStatus', $session->getStatus());
|
||||
$tmpl->assign('encryptHomeStorage', $encryptHomeStorage);
|
||||
$tmpl->assign('masterKeyEnabled', $util->isMasterKeyEnabled());
|
||||
|
||||
return $tmpl->fetchPage();
|
||||
|
|
|
@ -16,6 +16,7 @@ style('encryption', 'settings-admin');
|
|||
<em><?php p( $l->t( "Enabling this option encrypts all files stored on the main storage, otherwise only files on external storage will be encrypted" ) ); ?></em>
|
||||
</p>
|
||||
<br />
|
||||
<?php if($_['masterKeyEnabled'] === false): ?>
|
||||
<p id="encryptionSetRecoveryKey">
|
||||
<?php $_["recoveryEnabled"] === '0' ? p($l->t("Enable recovery key")) : p($l->t("Disable recovery key")); ?>
|
||||
<span class="msg"></span>
|
||||
|
@ -68,4 +69,5 @@ style('encryption', 'settings-admin');
|
|||
</button>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
|
|
Loading…
Reference in New Issue