diff options
author | Frank Karlitschek <frank@owncloud.org> | 2013-02-11 23:38:03 -0800 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2013-02-11 23:38:03 -0800 |
commit | 2507e0da1d61af5d9a9506a29aa6df4c31ac068e (patch) | |
tree | 15ffc139aa06c39b07f2c0d5f557dfbdac1adf75 /apps/files_external/ajax | |
parent | 53111ccdc835052480fef2fa0ab65ba4850fd36f (diff) | |
parent | 0c1174770d29d9d4ccf526d2180b27db65067625 (diff) | |
download | nextcloud-server-2507e0da1d61af5d9a9506a29aa6df4c31ac068e.tar.gz nextcloud-server-2507e0da1d61af5d9a9506a29aa6df4c31ac068e.zip |
Merge pull request #1636 from owncloud/fixing-smb-master
Fixing smb master
Diffstat (limited to 'apps/files_external/ajax')
-rw-r--r-- | apps/files_external/ajax/removeMountPoint.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/files_external/ajax/removeMountPoint.php b/apps/files_external/ajax/removeMountPoint.php index aa446426202..2f5dbcfdbac 100644 --- a/apps/files_external/ajax/removeMountPoint.php +++ b/apps/files_external/ajax/removeMountPoint.php @@ -3,6 +3,15 @@ OCP\JSON::checkAppEnabled('files_external'); OCP\JSON::callCheck(); +if (!isset($_POST['isPersonal'])) + return; +if (!isset($_POST['mountPoint'])) + return; +if (!isset($_POST['mountType'])) + return; +if (!isset($_POST['applicable'])) + return; + if ($_POST['isPersonal'] == 'true') { OCP\JSON::checkLoggedIn(); $isPersonal = true; @@ -10,4 +19,5 @@ if ($_POST['isPersonal'] == 'true') { OCP\JSON::checkAdminUser(); $isPersonal = false; } + OC_Mount_Config::removeMountPoint($_POST['mountPoint'], $_POST['mountType'], $_POST['applicable'], $isPersonal); |