getPrivateKey( \OCP\USER::getUser() ) && OCP\User::isLoggedIn() && OCA\Encryption\Crypt::mode() == 'server' ) { // Force the user to log-in again if the encryption key isn't unlocked // (happens when a user is logged in before the encryption app is // enabled) OCP\User::logout(); header( "Location: " . OC::$WEBROOT.'/' ); exit(); } OCP\App::registerAdmin( 'files_encryption', 'settings' ); // This is disabled until client-side encryption is supported: // OCP\App::registerPersonal( 'files_encryption', 'settings-personal' );