server/apps/files_external/ajax/removeMountPoint.php

14 lines
338 B
PHP
Raw Normal View History

<?php
OCP\JSON::checkAppEnabled('files_external');
2012-07-07 14:12:21 +00:00
OCP\JSON::callCheck();
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);