From 042bf4b26da7c6e6a7a888bc0cc2fd8d72467ff0 Mon Sep 17 00:00:00 2001 From: brantje Date: Sun, 2 Oct 2016 22:11:26 +0200 Subject: [PATCH] Fix same user check in search users --- controller/sharecontroller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/sharecontroller.php b/controller/sharecontroller.php index cc43c994..b0ec1387 100644 --- a/controller/sharecontroller.php +++ b/controller/sharecontroller.php @@ -111,7 +111,7 @@ class ShareController extends ApiController { $usersTmp = $this->userManager->searchDisplayName($search, $this->limit, $this->offset); foreach ($usersTmp as $user) { - if ($this->userId != $user->getUID() && count($this->vaultService->getByUser($user->getUID())) >= 1) { + if ($this->userId->getUID() != $user->getUID() && count($this->vaultService->getByUser($user->getUID())) >= 1) { $users[] = array( 'text' => $user->getDisplayName(), 'uid' => $user->getUID(),