Remove excludegroup.php
The ajax call is now using ajax/appconfig.php instead
This commit is contained in:
parent
4a27f4b8b5
commit
39f5580cdf
|
@ -1,18 +0,0 @@
|
|||
<?php
|
||||
OC_JSON::checkAdminUser();
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
$selectedGroups = isset($_POST["selectedGroups"]) ? json_decode($_POST["selectedGroups"]) : array();
|
||||
$changedGroup = isset($_POST["changedGroup"]) ? $_POST["changedGroup"] : '';
|
||||
|
||||
if ($changedGroup !== '') {
|
||||
if(($key = array_search($changedGroup, $selectedGroups)) !== false) {
|
||||
unset($selectedGroups[$key]);
|
||||
} else {
|
||||
$selectedGroups[] = $changedGroup;
|
||||
}
|
||||
} else {
|
||||
\OCP\Util::writeLog('core', 'Can not update list of excluded groups from sharing, parameter missing', \OCP\Util::WARN);
|
||||
}
|
||||
|
||||
\OC_Appconfig::setValue('core', 'shareapi_exclude_groups_list', implode(',', $selectedGroups));
|
Loading…
Reference in New Issue