server/apps/files_sharing/ajax/toggleresharing.php
Frank Karlitschek 43caa3b3b9 ported oc_json
2012-05-03 12:23:29 +02:00

11 lines
254 B
PHP
Executable file

<?php
OCP\JSON::checkAppEnabled('files_sharing');
OCP\JSON::checkAdminUser();
if ($_POST['resharing'] == true) {
OCP\Config::setAppValue('files_sharing', 'resharing', 'yes');
} else {
OCP\Config::setAppValue('files_sharing', 'resharing', 'no');
}
?>