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: 72af1eedec119bc8cd86c89fda352033aa65918f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?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');
}

?>