mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
14 lines
269 B
PHP
14 lines
269 B
PHP
<?php
|
|
|
|
$status = OC_App::isEnabled('files_encryption');
|
|
OC_App::enable('files_encryption');
|
|
|
|
OCA\Encryption\Crypt::decryptAll();
|
|
|
|
if ($status === false) {
|
|
OC_App::disable('files_encryption');
|
|
}
|
|
|
|
|
|
\OCP\JSON::success(array('data' => array('message' => 'looks good')));
|
|
|