summaryrefslogtreecommitdiffstats
path: root/apps/files_external/ajax/addMountPoint.php
blob: 549cb6a34277015261cac9832a9071e86687a987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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::addMountPoint($_POST['mountPoint'], $_POST['class'], $_POST['classOptions'], $_POST['mountType'], $_POST['applicable'], $isPersonal);

?>