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(); // //} // Register settings scripts OCP\App::registerAdmin( 'files_encryption', 'settings-admin' ); OCP\App::registerPersonal( 'files_encryption', 'settings-personal' );