mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Collaborator trust model should trust collaborators (#18539)
* Collaborator trust model should trust collaborators There was an unintended regression in #17917 which leads to only repository admin commits being trusted. This PR restores the old logic. Fix #18501 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		@@ -18,7 +18,7 @@ func ConvertFromGitCommit(commits []*git.Commit, repo *repo_model.Repository) []
 | 
			
		||||
			user_model.ValidateCommitsWithEmails(commits),
 | 
			
		||||
			repo.GetTrustModel(),
 | 
			
		||||
			func(user *user_model.User) (bool, error) {
 | 
			
		||||
				return IsUserRepoAdmin(repo, user)
 | 
			
		||||
				return IsOwnerMemberCollaborator(repo, user.ID)
 | 
			
		||||
			},
 | 
			
		||||
		),
 | 
			
		||||
		repo,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user