mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	
				
					committed by
					
						
						Kim "BKC" Carlbäcker
					
				
			
			
				
	
			
			
			
						parent
						
							da89afda58
						
					
				
				
					commit
					93a1de4842
				
			@@ -267,13 +267,7 @@ func Get(ctx *context.APIContext) {
 | 
			
		||||
	//       200: Repository
 | 
			
		||||
	//       500: error
 | 
			
		||||
 | 
			
		||||
	repo := ctx.Repo.Repository
 | 
			
		||||
	access, err := models.AccessLevel(ctx.User.ID, repo)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		ctx.Error(500, "GetRepository", err)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	ctx.JSON(200, repo.APIFormat(access))
 | 
			
		||||
	ctx.JSON(200, ctx.Repo.Repository.APIFormat(ctx.Repo.AccessMode))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// GetByID returns a single Repository
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user