Welcome to mirror list, hosted at ThFree Co, Russian Federation.

toggleresharing.php « ajax « files_sharing « apps - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 853b2bd5349283248168068d80c614be3fdbe2fe (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) {
	OCP\Config::setAppValue('files_sharing', 'resharing', 'yes');
} else {
	OCP\Config::setAppValue('files_sharing', 'resharing', 'no');
}

?>