diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-22 11:45:36 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-22 11:57:58 -0400 |
commit | 25d474579acd4ead174a83b22f1a3d712e6b682a (patch) | |
tree | 94fb2670bb0e9b1dcf0b6d45f2373bea5a98df52 /apps/files_sharing/ajax/userautocomplete.php | |
parent | 9699ff03bd1a200fc7f73bb29173169d84009e5d (diff) | |
download | nextcloud-server-25d474579acd4ead174a83b22f1a3d712e6b682a.tar.gz nextcloud-server-25d474579acd4ead174a83b22f1a3d712e6b682a.zip |
Removing most of files_sharing, the Share API implemented the majority of it
Diffstat (limited to 'apps/files_sharing/ajax/userautocomplete.php')
-rw-r--r-- | apps/files_sharing/ajax/userautocomplete.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/apps/files_sharing/ajax/userautocomplete.php b/apps/files_sharing/ajax/userautocomplete.php deleted file mode 100644 index 388a4844b95..00000000000 --- a/apps/files_sharing/ajax/userautocomplete.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php - -OCP\JSON::checkLoggedIn(); -OCP\JSON::checkAppEnabled('files_sharing'); - -$users = array(); -$groups = array(); -$self = OCP\USER::getUser(); -$userGroups = OC_Group::getUserGroups($self); -$users[] = "<optgroup label='Users'>"; -$groups[] = "<optgroup label='Groups'>"; -foreach ($userGroups as $group) { - $groupUsers = OC_Group::usersInGroup($group); - $userCount = 0; - foreach ($groupUsers as $user) { - if ($user != $self) { - $users[] = "<option value='".$user."'>".$user."</option>"; - $userCount++; - } - } - // Don't include the group if only the current user is a member of it - if ($userCount > 0) { - $groups[] = "<option value='".$group."(group)'>".$group." (group) </option>"; - } -} -$users = array_unique($users); -$users[] = "</optgroup>"; -$groups[] = "</optgroup>"; -$users = array_merge($users, $groups); -OCP\JSON::encodedPrint($users); |