Browse Source
			
			
			Merge pull request #3608 from BlackDex/fix-issue-3607
			
				Fix send access regression
			
			
				pull/3593/head
			
			
		 
		
			
				
					
						 Daniel García
					
					2 years ago
						Daniel García
					
					2 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
2 additions and 
4 deletions
			 
			
		 
		
			
				- 
					
					
					 
					src/api/core/sends.rs
				
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -374,7 +374,6 @@ pub struct SendAccessData { | 
			
		
	
		
			
				
					|  |  |  | async fn post_access( | 
			
		
	
		
			
				
					|  |  |  |     access_id: &str, | 
			
		
	
		
			
				
					|  |  |  |     data: JsonUpcase<SendAccessData>, | 
			
		
	
		
			
				
					|  |  |  |     headers: Headers, | 
			
		
	
		
			
				
					|  |  |  |     mut conn: DbConn, | 
			
		
	
		
			
				
					|  |  |  |     ip: ClientIp, | 
			
		
	
		
			
				
					|  |  |  |     nt: Notify<'_>, | 
			
		
	
	
		
			
				
					|  |  | @ -423,7 +422,7 @@ async fn post_access( | 
			
		
	
		
			
				
					|  |  |  |         UpdateType::SyncSendUpdate, | 
			
		
	
		
			
				
					|  |  |  |         &send, | 
			
		
	
		
			
				
					|  |  |  |         &send.update_users_revision(&mut conn).await, | 
			
		
	
		
			
				
					|  |  |  |         &headers.device.uuid, | 
			
		
	
		
			
				
					|  |  |  |         &String::from("00000000-0000-0000-0000-000000000000"), | 
			
		
	
		
			
				
					|  |  |  |         &mut conn, | 
			
		
	
		
			
				
					|  |  |  |     ) | 
			
		
	
		
			
				
					|  |  |  |     .await; | 
			
		
	
	
		
			
				
					|  |  | @ -437,7 +436,6 @@ async fn post_access_file( | 
			
		
	
		
			
				
					|  |  |  |     file_id: &str, | 
			
		
	
		
			
				
					|  |  |  |     data: JsonUpcase<SendAccessData>, | 
			
		
	
		
			
				
					|  |  |  |     host: Host, | 
			
		
	
		
			
				
					|  |  |  |     headers: Headers, | 
			
		
	
		
			
				
					|  |  |  |     mut conn: DbConn, | 
			
		
	
		
			
				
					|  |  |  |     nt: Notify<'_>, | 
			
		
	
		
			
				
					|  |  |  | ) -> JsonResult { | 
			
		
	
	
		
			
				
					|  |  | @ -482,7 +480,7 @@ async fn post_access_file( | 
			
		
	
		
			
				
					|  |  |  |         UpdateType::SyncSendUpdate, | 
			
		
	
		
			
				
					|  |  |  |         &send, | 
			
		
	
		
			
				
					|  |  |  |         &send.update_users_revision(&mut conn).await, | 
			
		
	
		
			
				
					|  |  |  |         &headers.device.uuid, | 
			
		
	
		
			
				
					|  |  |  |         &String::from("00000000-0000-0000-0000-000000000000"), | 
			
		
	
		
			
				
					|  |  |  |         &mut conn, | 
			
		
	
		
			
				
					|  |  |  |     ) | 
			
		
	
		
			
				
					|  |  |  |     .await; | 
			
		
	
	
		
			
				
					|  |  | 
 |