mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Backport #34827 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -304,7 +304,7 @@ func CanDoerChangeReviewRequests(ctx context.Context, doer *user_model.User, rep | ||||
|  | ||||
| 	// If the repo's owner is an organization, members of teams with read permission on pull requests can change reviewers | ||||
| 	if repo.Owner.IsOrganization() { | ||||
| 		teams, err := organization.GetTeamsWithAccessToRepo(ctx, repo.OwnerID, repo.ID, perm.AccessModeRead) | ||||
| 		teams, err := organization.GetTeamsWithAccessToAnyRepoUnit(ctx, repo.OwnerID, repo.ID, perm.AccessModeRead, unit.TypePullRequests) | ||||
| 		if err != nil { | ||||
| 			log.Error("GetTeamsWithAccessToRepo: %v", err) | ||||
| 			return false | ||||
|   | ||||
		Reference in New Issue
	
	Block a user