Fix same user check in search users

This commit is contained in:
brantje 2016-10-02 22:11:26 +02:00
parent 0d87b9f38f
commit 042bf4b26d
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F

View file

@ -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(),