server/apps/files_sharing/ajax/toggleresharing.php
2012-04-27 23:14:53 +02:00

11 lines
250 B
PHP

<?php
OC_JSON::checkAppEnabled('files_sharing');
OC_JSON::checkAdminUser();
if ($_POST['resharing'] == true) {
OC_Appconfig::setValue('files_sharing', 'resharing', 'yes');
} else {
OC_Appconfig::setValue('files_sharing', 'resharing', 'no');
}
?>