diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-08-17 12:13:49 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-08-26 11:54:25 +0200 |
commit | 83b88c9a264a46f393df95e6c57793f0300495da (patch) | |
tree | 1fff923b3c43cc45346fdcfedc304cb452106983 /apps/files_sharing/api/sharees.php | |
parent | 0227cfff081a79627d038f7e30a1bdece9df4d3a (diff) | |
download | nextcloud-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.php | 5 |
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' => [ |