mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 22:41:03 +00:00 
			
		
		
		
	Backport #23155 Fixes https://github.com/go-gitea/gitea/issues/23150 Before:  After:  Co-authored-by: yp05327 <576951401@qq.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								27879bc45e
							
						
					
				
			
			
				commit
				
					
						1bc4ffc337
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -228,7 +228,7 @@ func httpBase(ctx *context.Context) (h *serviceHandler) { | |||
| 				} | ||||
| 
 | ||||
| 				if !p.CanAccess(accessMode, unitType) { | ||||
| 					ctx.PlainText(http.StatusForbidden, "User permission denied") | ||||
| 					ctx.PlainText(http.StatusNotFound, "Repository not found") | ||||
| 					return | ||||
| 				} | ||||
| 			} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue