mirror of
				https://github.com/nextcloud/passman.git
				synced 2025-10-31 07:46:16 +08:00 
			
		
		
		
	Fix same user check in search users
This commit is contained in:
		
							parent
							
								
									0d87b9f38f
								
							
						
					
					
						commit
						042bf4b26d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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(), | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue