aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/ajax/removeMountPoint.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/ajax/removeMountPoint.php')
-rw-r--r--apps/files_external/ajax/removeMountPoint.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/files_external/ajax/removeMountPoint.php b/apps/files_external/ajax/removeMountPoint.php
new file mode 100644
index 00000000000..b77b306bcb5
--- /dev/null
+++ b/apps/files_external/ajax/removeMountPoint.php
@@ -0,0 +1,13 @@
+<?php
+
+OCP\JSON::checkAppEnabled('files_external');
+if ($_POST['isPersonal'] == 'true') {
+ OCP\JSON::checkLoggedIn();
+ $isPersonal = true;
+} else {
+ OCP\JSON::checkAdminUser();
+ $isPersonal = false;
+}
+OC_Mount_Config::removeMountPoint($_POST['mountPoint'], $_POST['mountType'], $_POST['applicable'], $isPersonal);
+
+?>