server/apps/files_external/ajax/removeMountPoint.php
2012-06-08 11:42:29 -04:00

13 lines
318 B
PHP

<?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);
?>