mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	fix bug when deleting a release (#4207)
This commit is contained in:
		
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							908e8942cc
						
					
				
				
					commit
					406031d3cc
				
			| @@ -448,6 +448,11 @@ func DeleteReleaseByID(id int64, u *User, delTag bool) error { | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	rel.Repo = repo | ||||
| 	if err = rel.LoadAttributes(); err != nil { | ||||
| 		return fmt.Errorf("LoadAttributes: %v", err) | ||||
| 	} | ||||
|  | ||||
| 	mode, _ := accessLevel(x, u.ID, rel.Repo) | ||||
| 	if err := PrepareWebhooks(rel.Repo, HookEventRelease, &api.ReleasePayload{ | ||||
| 		Action:     api.HookReleaseDeleted, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user