server/apps/files_sharing/ajax/toggleresharing.php
2012-04-25 11:54:16 -04:00

13 lines
290 B
PHP

<?php
require_once('../../../lib/base.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');
}
?>