summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/toggleresharing.php
blob: fd16b208be11e63d20234b4c26457473dd8b9143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

require_once('../../../lib/base.php');

OC_JSON::checkAppEnabled('files_sharing');
OC_JSON::checkAdminUser();
error_log($_POST['resharing']);
if ($_POST['resharing'] == true) {
	error_log("enabling");
	OC_Appconfig::setValue('files_sharing', 'resharing', 'yes');
} else {
	error_log("disabling");
	OC_Appconfig::setValue('files_sharing', 'resharing', 'no');
}

?>