summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-09-09 17:18:24 +0200
committerVincent Petry <pvince81@owncloud.com>2014-09-22 10:14:11 +0200
commit7f030eedde528b48f52cab155e1247b01f78b014 (patch)
tree8bf7fe6f73bdbb56a7751d89b8c4b128bf8601ef /settings
parent2e93300313968a4c1eb3a88f7c27891cc18cf192 (diff)
downloadnextcloud-server-7f030eedde528b48f52cab155e1247b01f78b014.tar.gz
nextcloud-server-7f030eedde528b48f52cab155e1247b01f78b014.zip
Remove excludegroup.php
The ajax call is now using ajax/appconfig.php instead
Diffstat (limited to 'settings')
-rw-r--r--settings/ajax/excludegroups.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/settings/ajax/excludegroups.php b/settings/ajax/excludegroups.php
deleted file mode 100644
index c3488c5bae7..00000000000
--- a/settings/ajax/excludegroups.php
+++ /dev/null
@@ -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));