[Pkg-owncloud-commits] [owncloud] 106/258: Remove excludegroup.php
David Prévot
taffit at moszumanska.debian.org
Sat Oct 11 17:22:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 7f030eedde528b48f52cab155e1247b01f78b014
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Tue Sep 9 17:18:24 2014 +0200
Remove excludegroup.php
The ajax call is now using ajax/appconfig.php instead
---
settings/ajax/excludegroups.php | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/settings/ajax/excludegroups.php b/settings/ajax/excludegroups.php
deleted file mode 100644
index c3488c5..0000000
--- 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));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list