diff --git a/models/git/protected_branch.go b/models/git/protected_branch.go index 6a68f5d0ee..1b693ff72a 100644 --- a/models/git/protected_branch.go +++ b/models/git/protected_branch.go @@ -551,7 +551,7 @@ func RemoveTeamIDFromProtectedBranch(ctx context.Context, p *ProtectedBranch, te p.MergeWhitelistTeamIDs = util.SliceRemoveAll(p.MergeWhitelistTeamIDs, teamID) if lenIDs != len(p.WhitelistTeamIDs) || - lenForcePushIDs != len(p.ForcePushWhitelistTeamIDs) || + lenForcePushIDs != len(p.ForcePushWhitelistTeamIDs) || lenApprovalIDs != len(p.ApprovalsWhitelistTeamIDs) || lenMergeIDs != len(p.MergeWhitelistTeamIDs) { if _, err := db.GetEngine(ctx).ID(p.ID).Cols(