Welcome to mirror list, hosted at ThFree Co, Russian Federation.

removeMountPoint.php « ajax « files_external « apps - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0870911544b8aeb53c2d0d4f810562d089f0a731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

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;
} else {
	OCP\JSON::checkAdminUser();
	$isPersonal = false;
}

OC_Mount_Config::removeMountPoint((string)$_POST['mountPoint'], (string)$_POST['mountType'], (string)$_POST['applicable'], $isPersonal);