Skip to content

Commit

Permalink
Fix incorrect MergeWhitelistTeamIDs check in CanUserMerge function (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SagePtr authored and lafriks committed Jul 27, 2018
1 parent 5927599 commit c122412
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 c122412

Please sign in to comment.