mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
This commit is contained in:
		
				
					committed by
					
						
						Kim "BKC" Carlbäcker
					
				
			
			
				
	
			
			
			
						parent
						
							08b9af9ad8
						
					
				
				
					commit
					04b9a7e7a2
				
			@@ -539,7 +539,7 @@ func CommitRepoAction(opts CommitRepoActionOptions) error {
 | 
			
		||||
	}()
 | 
			
		||||
 | 
			
		||||
	apiPusher := pusher.APIFormat()
 | 
			
		||||
	apiRepo := repo.APIFormat(nil)
 | 
			
		||||
	apiRepo := repo.APIFormat(AccessModeNone)
 | 
			
		||||
 | 
			
		||||
	var shaSum string
 | 
			
		||||
	switch opType {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user