Browse Source
			
			
			Improve org mismatch check, consider different orgs
			
			
				pull/343/head
			
			
		 
		
			
				
					
						 Daniel García
					
					7 years ago
						Daniel García
					
					7 years ago
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: FC8A7D14C3CD543A
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
1 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					src/api/core/ciphers.rs
				
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -221,7 +221,7 @@ pub fn update_cipher_from_data( | 
			
		
	
		
		
			
				
					|  |  |     nt: &Notify, |  |  |     nt: &Notify, | 
			
		
	
		
		
			
				
					|  |  |     ut: UpdateType, |  |  |     ut: UpdateType, | 
			
		
	
		
		
			
				
					|  |  | ) -> EmptyResult { |  |  | ) -> EmptyResult { | 
			
		
	
		
		
			
				
					
					|  |  |     if cipher.organization_uuid.is_some() && data.OrganizationId.is_none() { |  |  |     if cipher.organization_uuid != data.OrganizationId { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         err!("Organization mismatch. Please resync the client before updating the cipher") |  |  |         err!("Organization mismatch. Please resync the client before updating the cipher") | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | 
 |