summaryrefslogtreecommitdiffstats
path: root/models/branches.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/branches.go')
-rw-r--r--models/branches.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/branches.go b/models/branches.go
index faa3ba6af8..ade5de8e0e 100644
--- a/models/branches.go
+++ b/models/branches.go
@@ -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
}