summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/toggleresharing.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/ajax/toggleresharing.php')
-rw-r--r--apps/files_sharing/ajax/toggleresharing.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/files_sharing/ajax/toggleresharing.php b/apps/files_sharing/ajax/toggleresharing.php
new file mode 100644
index 00000000000..72af1eedec1
--- /dev/null
+++ b/apps/files_sharing/ajax/toggleresharing.php
@@ -0,0 +1,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');
+}
+
+?>