Skip to content
Snippets Groups Projects
Commit 02848a50 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #13512 from owncloud/kill-ancient-code

kill ancient code
parents a87a2e8e ce47065d
No related branches found
No related tags found
No related merge requests found
...@@ -236,23 +236,6 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo ...@@ -236,23 +236,6 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
if (isset($_GET['search'])) { if (isset($_GET['search'])) {
$shareWithinGroupOnly = OC\Share\Share::shareWithGroupMembersOnly(); $shareWithinGroupOnly = OC\Share\Share::shareWithGroupMembersOnly();
$shareWith = array(); $shareWith = array();
// if (OC_App::isEnabled('contacts')) {
// // TODO Add function to contacts to only get the 'fullname' column to improve performance
// $ids = OC_Contacts_Addressbook::activeIds();
// foreach ($ids as $id) {
// $vcards = OC_Contacts_VCard::all($id);
// foreach ($vcards as $vcard) {
// $contact = $vcard['fullname'];
// if (stripos($contact, $_GET['search']) !== false
// && (!isset($_GET['itemShares'])
// || !isset($_GET['itemShares'][OCP\Share::SHARE_TYPE_CONTACT])
// || !is_array($_GET['itemShares'][OCP\Share::SHARE_TYPE_CONTACT])
// || !in_array($contact, $_GET['itemShares'][OCP\Share::SHARE_TYPE_CONTACT]))) {
// $shareWith[] = array('label' => $contact, 'value' => array('shareType' => 5, 'shareWith' => $vcard['id']));
// }
// }
// }
// }
$groups = OC_Group::getGroups($_GET['search']); $groups = OC_Group::getGroups($_GET['search']);
if ($shareWithinGroupOnly) { if ($shareWithinGroupOnly) {
$usergroups = OC_Group::getUserGroups(OC_User::getUser()); $usergroups = OC_Group::getUserGroups(OC_User::getUser());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment