Skip to content

Commit c122412

Browse files
SagePtrlafriks
authored andcommitted
Fix incorrect MergeWhitelistTeamIDs check in CanUserMerge function (#4519) (#4525)
1 parent 5927599 commit c122412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/branches.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (protectBranch *ProtectedBranch) CanUserMerge(userID int64) bool {
7474
return true
7575
}
7676

77-
if len(protectBranch.WhitelistTeamIDs) == 0 {
77+
if len(protectBranch.MergeWhitelistTeamIDs) == 0 {
7878
return false
7979
}
8080

0 commit comments

Comments
 (0)