Skip to content

Commit

Permalink
Fix incorrect MergeWhitelistTeamIDs check in CanUserMerge function (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
SagePtr committed Jul 27, 2018
1 parent 5927599 commit 6dc9fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/branches.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (protectBranch *ProtectedBranch) CanUserMerge(userID int64) bool {
return true
}

if len(protectBranch.WhitelistTeamIDs) == 0 {
if len(protectBranch.MergeWhitelistTeamIDs) == 0 {
return false
}

Expand Down

0 comments on commit 6dc9fea

Please sign in to comment.