summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/api/sharees.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-08-17 12:13:49 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-08-26 11:54:25 +0200
commit83b88c9a264a46f393df95e6c57793f0300495da (patch)
tree1fff923b3c43cc45346fdcfedc304cb452106983 /apps/files_sharing/api/sharees.php
parent0227cfff081a79627d038f7e30a1bdece9df4d3a (diff)
downloadnextcloud-server-83b88c9a264a46f393df95e6c57793f0300495da.tar.gz
nextcloud-server-83b88c9a264a46f393df95e6c57793f0300495da.zip
Do not return the current user himself
Diffstat (limited to 'apps/files_sharing/api/sharees.php')
-rw-r--r--apps/files_sharing/api/sharees.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/api/sharees.php b/apps/files_sharing/api/sharees.php
index 3e802b3028a..f12677265bf 100644
--- a/apps/files_sharing/api/sharees.php
+++ b/apps/files_sharing/api/sharees.php
@@ -116,6 +116,11 @@ class Sharees {
foreach ($users as $uid => $displayName) {
+ if ($uid === $this->userSession->getUser()->getUID()) {
+ // Skip the current user
+ continue;
+ }
+
$sharees[] = [
'label' => $displayName,
'value' => [