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 authored and lafriks committed Jul 27, 2018
1 parent dae065e commit 5a7830e
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 5a7830e

Please sign in to comment.