summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/toggleresharing.php
blob: bd4d23ff79fc6b6b0305965b1b53f117776d4689 (plain)
1
2
3
4
5
6
7
8
9
10
11
<?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');
}

?>